started sims section & axes&grid settings for KFEditor

This commit is contained in:
STEINNI
2026-06-05 15:45:27 +00:00
parent ce9e73ac41
commit 5207a3b18e
13 changed files with 309 additions and 7 deletions
+51
View File
@@ -0,0 +1,51 @@
class SimsController extends WindozController {
constructor(params) {
super(params)
}
async create() {
const models = {
sims: new SimsModel('/sims'),
keyframes: new KeyframesModel('/keyframes')
}
this.loadWindow(
'sims/CreateSimView',
{
title: '<i class="icon-new"></i> Create a simulation',
static: true,
expanded: false,
withSettings: false,
windowStyle: WindozDomContent.boxFromPrefs('sims.createsimview', { x: 50, y: 50, w: 800, h: 600 }),
},
{
models: models,
}
)
}
async manage() {
const models = {
sims: new SimsModel('/sims')
}
this.loadWindow(
'sims/ManageSimView',
{
title: '<i class="icon-file-play"></i> Play / Pause a simulation',
static: true,
expanded: false,
withSettings: false,
windowStyle: WindozDomContent.boxFromPrefs('sims.managesimview', { x: 50, y: 50, w: 800, h: 600 }),
},
{
models: models,
}
)
}
}
app.registerClass('SimsController', SimsController)