ageent preview & select in KF editor
This commit is contained in:
@@ -16,24 +16,6 @@ class EditorsController extends WindozController {
|
||||
agents : new AgentsModel('/agents')
|
||||
}
|
||||
|
||||
// const ttb = new app.LoadedModules.Threetobus({
|
||||
// eventsMapping: this.eventsMapping,
|
||||
// sceneSize: this.arenaConfig.arenaSize,
|
||||
// })
|
||||
// ttb.initScene({
|
||||
// axes: true,
|
||||
// grid: true,
|
||||
// })
|
||||
|
||||
// this.agentDefs = await models.agents.getSprites('Basic 3D')
|
||||
// const a1 = ttb.agentFromJSON('agent42', this.agentDefs.nocode1)
|
||||
// const a2 = ttb.agentFromJSON('agent42', this.agentDefs.nocode2)
|
||||
// ttb.scene.add(a1)
|
||||
// ttb.scene.add(a2)
|
||||
|
||||
//TODO: eventsMapping: address child by suffix in assignations
|
||||
|
||||
|
||||
this.loadWindow(
|
||||
'editors/KeyframeView',
|
||||
{
|
||||
@@ -45,8 +27,6 @@ class EditorsController extends WindozController {
|
||||
},
|
||||
{
|
||||
models: models,
|
||||
agentDefs: this.agentDefs,
|
||||
//ttb: ttb,
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@@ -23,16 +23,16 @@
|
||||
"AgentsModel"
|
||||
],
|
||||
"views": [
|
||||
"editors/KeyframeView"
|
||||
{"view":"editors/KeyframeView", "dependencies": ["editors/modules/agentPreview.module"]}
|
||||
],
|
||||
"controllerDependencies": [
|
||||
"/helpers/basicDialogs",
|
||||
"/helpers/validators",
|
||||
"/helpers/activeAttributes",
|
||||
"/thirdparty/Threetobus/three.module",
|
||||
"/thirdparty/Threetobus/OrbitControls.module",
|
||||
"/thirdparty/Threetobus/tween.module",
|
||||
"/thirdparty/Threetobus/threetobus.module"
|
||||
"/helpers/activeAttributes",
|
||||
"/helpers/helpers3D.module",
|
||||
"/thirdparty/Three/three.module",
|
||||
"/thirdparty/Three/OrbitControls.module",
|
||||
"/thirdparty/Three/tween.module"
|
||||
],
|
||||
"assets": {
|
||||
"styles": [
|
||||
|
||||
@@ -3,7 +3,6 @@ class DashboardsController extends WindozController {
|
||||
constructor(params) {
|
||||
super(params)
|
||||
this.arenaConfig = app.Assets.Store.json.arenaConfig
|
||||
this.agentDefs = app.Assets.Store.json.agentDefs
|
||||
this.eventsMapping = app.Assets.Store.json.eventsMapping
|
||||
}
|
||||
|
||||
@@ -28,8 +27,8 @@ class DashboardsController extends WindozController {
|
||||
})
|
||||
|
||||
this.agentDefs = await models.agents.getSprites('Basic 3D')
|
||||
const a1 = ttb.agentFromJSON('agent42', this.agentDefs.nocode1)
|
||||
const a2 = ttb.agentFromJSON('agent42', this.agentDefs.nocode2)
|
||||
const a1 = ttb.createAgent('agent42', this.agentDefs.nocode1)
|
||||
const a2 = ttb.createAgent('agent42', this.agentDefs.nocode2)
|
||||
ttb.scene.add(a1)
|
||||
ttb.scene.add(a2)
|
||||
|
||||
|
||||
@@ -21,10 +21,11 @@
|
||||
"controllerDependencies": [
|
||||
"/helpers/basicDialogs",
|
||||
"/helpers/validators",
|
||||
"/helpers/activeAttributes",
|
||||
"/thirdparty/Threetobus/three.module",
|
||||
"/thirdparty/Threetobus/OrbitControls.module",
|
||||
"/thirdparty/Threetobus/tween.module",
|
||||
"/helpers/activeAttributes",
|
||||
"/helpers/helpers3D.module",
|
||||
"/thirdparty/Three/three.module",
|
||||
"/thirdparty/Three/OrbitControls.module",
|
||||
"/thirdparty/Three/tween.module",
|
||||
"/thirdparty/Threetobus/threetobus.module"
|
||||
],
|
||||
"assets": {
|
||||
@@ -35,7 +36,7 @@
|
||||
],
|
||||
"json": [
|
||||
{"id":"arenaConfig", "name": "arena/arenaConfig1.json"},
|
||||
{"id":"eventsMapping", "name": "threetobus/eventsMapping.json"}
|
||||
{"id":"eventsMapping", "name": "threetobus/eventsMapping.json"}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user