a little more of Windoz, & Keyframe view start 2

This commit is contained in:
STEINNI
2025-10-14 16:51:15 +00:00
parent fdefe42146
commit 078f60ef51
10 changed files with 38 additions and 17 deletions
+1 -1
View File
@@ -14,7 +14,7 @@
"dependencies" : { "WindozPluralModel": [ "WindozModel" ] } "dependencies" : { "WindozPluralModel": [ "WindozModel" ] }
} }
], ],
"masterController": "EICAppController", "masterController": "WindozAppController",
"defaultMasterTemplate": "templates/EICAppTemplate" "defaultMasterTemplate": "templates/EICAppTemplate"
}, },
"logger": { "logger": {
@@ -1,4 +1,4 @@
class EICAppController extends MasterController { class WindozAppController extends MasterController {
ControllerReady() { ControllerReady() {
// setting up session interactions // setting up session interactions
@@ -32,4 +32,4 @@ class EICAppController extends MasterController {
} }
} }
app.registerClass('EICAppController', EICAppController); app.registerClass('WindozAppController', WindozAppController);
+3 -3
View File
@@ -35,13 +35,13 @@ class EditorsController extends WindozController {
this.loadWindow( this.loadWindow(
'editors/KeyFameView', 'editors/KeyframeView',
{ {
title: '<i class="icon-edit"></i> Keyframe edito 3D view', title: '<i class="icon-edit"></i> Keyframe edito 3D view',
static: true, static: true,
expanded: true, expanded: false,
withSettings: true, 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, models: models,
@@ -38,7 +38,7 @@
"styles": [ "styles": [
], ],
"html": [ "html": [
{ "id":"sapceViewSetting", "name": "sapceViewSetting.html"} { "id":"spaceViewSetting", "name": "spaceViewSetting.html"}
], ],
"json": [ "json": [
] ]
@@ -31,7 +31,7 @@
"styles": [ "styles": [
], ],
"html": [ "html": [
{ "id":"sapceViewSetting", "name": "sapceViewSetting.html"} { "id":"spaceViewSetting", "name": "spaceViewSetting.html"}
], ],
"json": [ "json": [
{"id":"arenaConfig", "name": "arena/arenaConfig1.json"}, {"id":"arenaConfig", "name": "arena/arenaConfig1.json"},
+22 -1
View File
@@ -3,6 +3,27 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.kf-editor{
grid-template-columns: 15% auto 20%;
}
</style> </style>
<div class="kf-editor cols-3">
<article eiccard="">
<header>Agent show</header>
<section>agents selector</section>
</article>
<article eiccard="" data-eicui-id="d9aace9b-9e60-4cfc-ad7c-98b9693d05f3" aria-enabled="true">
<section>
Arena
</section>
</article>
<article eiccard="">
<header>Properties</header>
<section>Props form</section>
</article>
<canvas data-output="kfeCanvas"></canvas> </div>
<!-- <canvas data-output="kfeCanvas"></canvas> -->
+7 -7
View File
@@ -16,19 +16,19 @@ class KeyframeView extends WindozDomContent {
DOMContentBlured(options) { this.wasBlured = true } DOMContentBlured(options) { this.wasBlured = true }
DOMContentLoaded(options) { DOMContentLoaded(options) {
this.windowPrefsId = `editors.keyframeview.${options.mode}` this.windowPrefsId = `editors.keyframeview`
for(let model in options.models) this[model] = options.models[model] 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) const components = ui.eicfy(this.el)
this.setupTriggers(components) this.setupTriggers(components)
this.setupRefs(components) this.setupRefs(components)
this.renderingEngine = this.kfe.startRendering(this.outputs.kfeCanvas, options.mode) // this.renderingEngine = this.kfe.startRendering(this.outputs.kfeCanvas, 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 => { this.outputs.settingsMenu.querySelectorAll('input[type="toggler"]').forEach(el => {
const tog = new InputToggler(el) const tog = new InputToggler(el)
if(this.kfe[tog._el.name].layers){ // if(this.kfe[tog._el.name].layers){
tog.value = this.renderingEngine.camera.layers.test(this.kfe[tog._el.name].layers) ? 'yes' : 'no' // tog.value = this.renderingEngine.camera.layers.test(this.kfe[tog._el.name].layers) ? 'yes' : 'no'
} // }
tog.onToggle = this.settingsToggle.bind(this) tog.onToggle = this.settingsToggle.bind(this)
}) })
} }
+1 -1
View File
@@ -23,7 +23,7 @@ class SpaceView extends WindozDomContent {
this.setupTriggers(components) this.setupTriggers(components)
this.setupRefs(components) this.setupRefs(components)
this.renderingEngine = this.ttb.startRendering(this.outputs.ttbCanvas, options.mode) 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 => { this.outputs.settingsMenu.querySelectorAll('input[type="toggler"]').forEach(el => {
const tog = new InputToggler(el) const tog = new InputToggler(el)
if(this.ttb[tog._el.name].layers){ if(this.ttb[tog._el.name].layers){