buildoz is born, bz-select is coming

This commit is contained in:
STEINNI
2025-10-17 22:32:59 +00:00
parent 91554e5925
commit dfb5d75197
6 changed files with 192 additions and 35 deletions
+15 -9
View File
@@ -23,18 +23,24 @@ class KeyframeView extends WindozDomContent {
this.agentDefs = await this.models.agents.getSprites('Basic 3D')
for(const agentType in this.agentDefs){
const opt = new Option(agentType, agentType)
this.outputs.agentsSelector.add(opt)
}
this.outputs.agentsSelector.addEventListener('change',this.onChangeAgent.bind(this))
// for(const agentType in this.agentDefs){
// const opt = new Option(agentType, agentType)
// this.outputs.agentsSelector.add(opt)
// }
// this.outputs.agentsSelector.addEventListener('change',this.onChangeAgent.bind(this))
this.agentPreview = new app.LoadedModules.AgentPreview(this.outputs.agentSampleCanvas, this.agentDefs)
this.onChangeAgent()
this.agentPreview.startRendering()
this.agentPreview.animation = true
// const x = new tinySelector('[data-output="agentsSelector"]',{
// selectorOptions: Object.keys(this.agentDefs).map(aname => ({ markup: aname, value: aname}))
// })
// this.agentPreview = new app.LoadedModules.AgentPreview(this.outputs.agentSampleCanvas, this.agentDefs)
// this.onChangeAgent()
// this.agentPreview.startRendering()
// this.agentPreview.animation = true
}
onChangeAgent(event){
this.agentPreview.setAgent(this.outputs.agentsSelector.value)
}