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
+7 -7
View File
@@ -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)
})
}