From 078f60ef513b41db29a6ff92ff71eb6937107ee3 Mon Sep 17 00:00:00 2001 From: STEINNI Date: Tue, 14 Oct 2025 16:51:15 +0000 Subject: [PATCH] a little more of Windoz, & Keyframe view start 2 --- ...ViewSetting.html => spaceViewSetting.html} | 0 app/config/config.json | 2 +- ...ppController.js => WindozAppController.js} | 4 ++-- ...ntroller.json => WindozAppController.json} | 0 app/controllers/editors/EditorsController.js | 6 ++--- .../editors/EditorsController.json | 2 +- .../live/DashboardsController.json | 2 +- app/views/editors/KeyframeView.html | 23 ++++++++++++++++++- app/views/editors/KeyframeView.js | 14 +++++------ app/views/visualisers/SpaceView.js | 2 +- 10 files changed, 38 insertions(+), 17 deletions(-) rename app/assets/html/{sapceViewSetting.html => spaceViewSetting.html} (100%) rename app/controllers/{EICAppController.js => WindozAppController.js} (90%) rename app/controllers/{EICAppController.json => WindozAppController.json} (100%) diff --git a/app/assets/html/sapceViewSetting.html b/app/assets/html/spaceViewSetting.html similarity index 100% rename from app/assets/html/sapceViewSetting.html rename to app/assets/html/spaceViewSetting.html diff --git a/app/config/config.json b/app/config/config.json index f135673..67578f1 100644 --- a/app/config/config.json +++ b/app/config/config.json @@ -14,7 +14,7 @@ "dependencies" : { "WindozPluralModel": [ "WindozModel" ] } } ], - "masterController": "EICAppController", + "masterController": "WindozAppController", "defaultMasterTemplate": "templates/EICAppTemplate" }, "logger": { diff --git a/app/controllers/EICAppController.js b/app/controllers/WindozAppController.js similarity index 90% rename from app/controllers/EICAppController.js rename to app/controllers/WindozAppController.js index 6de1690..9b2e9ea 100755 --- a/app/controllers/EICAppController.js +++ b/app/controllers/WindozAppController.js @@ -1,4 +1,4 @@ -class EICAppController extends MasterController { +class WindozAppController extends MasterController { ControllerReady() { // setting up session interactions @@ -32,4 +32,4 @@ class EICAppController extends MasterController { } } -app.registerClass('EICAppController', EICAppController); \ No newline at end of file +app.registerClass('WindozAppController', WindozAppController); \ No newline at end of file diff --git a/app/controllers/EICAppController.json b/app/controllers/WindozAppController.json similarity index 100% rename from app/controllers/EICAppController.json rename to app/controllers/WindozAppController.json diff --git a/app/controllers/editors/EditorsController.js b/app/controllers/editors/EditorsController.js index 071af67..cc62ccd 100644 --- a/app/controllers/editors/EditorsController.js +++ b/app/controllers/editors/EditorsController.js @@ -35,13 +35,13 @@ class EditorsController extends WindozController { this.loadWindow( - 'editors/KeyFameView', + 'editors/KeyframeView', { title: ' Keyframe edito 3D view', static: true, - expanded: true, + expanded: false, withSettings: true, - windowStyle: WindozDomContent.boxFromPrefs('editors.keyframe', { x: 50, y:50, w:1000, h:800 }), + windowStyle: WindozDomContent.boxFromPrefs('editors.keyframeview', { x: 50, y:50, w:1000, h:800 }), }, { models: models, diff --git a/app/controllers/editors/EditorsController.json b/app/controllers/editors/EditorsController.json index 8fe92d2..ffc0e74 100644 --- a/app/controllers/editors/EditorsController.json +++ b/app/controllers/editors/EditorsController.json @@ -38,7 +38,7 @@ "styles": [ ], "html": [ - { "id":"sapceViewSetting", "name": "sapceViewSetting.html"} + { "id":"spaceViewSetting", "name": "spaceViewSetting.html"} ], "json": [ ] diff --git a/app/controllers/live/DashboardsController.json b/app/controllers/live/DashboardsController.json index 9c5ae2a..500e59b 100644 --- a/app/controllers/live/DashboardsController.json +++ b/app/controllers/live/DashboardsController.json @@ -31,7 +31,7 @@ "styles": [ ], "html": [ - { "id":"sapceViewSetting", "name": "sapceViewSetting.html"} + { "id":"spaceViewSetting", "name": "spaceViewSetting.html"} ], "json": [ {"id":"arenaConfig", "name": "arena/arenaConfig1.json"}, diff --git a/app/views/editors/KeyframeView.html b/app/views/editors/KeyframeView.html index 2e0b452..8a54727 100644 --- a/app/views/editors/KeyframeView.html +++ b/app/views/editors/KeyframeView.html @@ -3,6 +3,27 @@ width: 100%; height: 100%; } + .kf-editor{ + grid-template-columns: 15% auto 20%; + } +
+
+
Agent show
+
agents selector
+
+
+
+ Arena +
+
+
+
Properties
+
Props form
+
- +
+ + + + diff --git a/app/views/editors/KeyframeView.js b/app/views/editors/KeyframeView.js index 8d1c6ff..e111f28 100644 --- a/app/views/editors/KeyframeView.js +++ b/app/views/editors/KeyframeView.js @@ -16,19 +16,19 @@ class KeyframeView extends WindozDomContent { DOMContentBlured(options) { this.wasBlured = true } DOMContentLoaded(options) { - this.windowPrefsId = `editors.keyframeview.${options.mode}` + this.windowPrefsId = `editors.keyframeview` for(let model in options.models) this[model] = options.models[model] - this.kfe = options.kfe + // this.kfe = options.kfe const components = ui.eicfy(this.el) this.setupTriggers(components) this.setupRefs(components) - this.renderingEngine = this.kfe.startRendering(this.outputs.kfeCanvas, options.mode) - this.output('settingsMenu',app.Assets.Store.html.sapceViewSetting) + // this.renderingEngine = this.kfe.startRendering(this.outputs.kfeCanvas, options.mode) + this.output('settingsMenu',app.Assets.Store.html.spaceViewSetting) this.outputs.settingsMenu.querySelectorAll('input[type="toggler"]').forEach(el => { const tog = new InputToggler(el) - if(this.kfe[tog._el.name].layers){ - tog.value = this.renderingEngine.camera.layers.test(this.kfe[tog._el.name].layers) ? 'yes' : 'no' - } + // if(this.kfe[tog._el.name].layers){ + // tog.value = this.renderingEngine.camera.layers.test(this.kfe[tog._el.name].layers) ? 'yes' : 'no' + // } tog.onToggle = this.settingsToggle.bind(this) }) } diff --git a/app/views/visualisers/SpaceView.js b/app/views/visualisers/SpaceView.js index be84031..beb7311 100644 --- a/app/views/visualisers/SpaceView.js +++ b/app/views/visualisers/SpaceView.js @@ -23,7 +23,7 @@ class SpaceView extends WindozDomContent { this.setupTriggers(components) this.setupRefs(components) this.renderingEngine = this.ttb.startRendering(this.outputs.ttbCanvas, options.mode) - this.output('settingsMenu',app.Assets.Store.html.sapceViewSetting) + this.output('settingsMenu',app.Assets.Store.html.spaceViewSetting) this.outputs.settingsMenu.querySelectorAll('input[type="toggler"]').forEach(el => { const tog = new InputToggler(el) if(this.ttb[tog._el.name].layers){