feat: 侧边栏收敛两大入口——创建游戏/展示+Play,模块菜单收进hub
This commit is contained in:
parent
561cdc8eb8
commit
aaba05a100
@ -65,70 +65,16 @@
|
||||
"target": "app.main_content",
|
||||
"items": [
|
||||
{
|
||||
"name": "workbench",
|
||||
"label": "游戏工作台",
|
||||
"name": "create_game",
|
||||
"label": "创建游戏",
|
||||
"icon": "",
|
||||
"script": "var d={name:'workbench',label:'游戏工作台',content:{widgettype:'urlwidget',options:{url:'/scense_game/workbench/workbench.ui'}}};if(!this.opts.items.find(function(i){return i.name==='workbench'})){this.opts.items.push(d);this.add_tab(d)}this.show_tabcontent({params:{name:'workbench'}})"
|
||||
"script": "var d={name:'create_game',label:'创建游戏',content:{widgettype:'urlwidget',options:{url:'/scense_game/workbench/create_hub.ui'}}};if(!this.opts.items.find(function(i){return i.name==='create_game'})){this.opts.items.push(d);this.add_tab(d)}this.show_tabcontent({params:{name:'create_game'}})"
|
||||
},
|
||||
{
|
||||
"name": "world",
|
||||
"label": "世界",
|
||||
"name": "play_game",
|
||||
"label": "展示 + Play",
|
||||
"icon": "",
|
||||
"script": "var d={name:'world',label:'世界',content:{widgettype:'urlwidget',options:{url:'/world/index.ui'}}};if(!this.opts.items.find(function(i){return i.name==='world'})){this.opts.items.push(d);this.add_tab(d)}this.show_tabcontent({params:{name:'world'}})"
|
||||
},
|
||||
{
|
||||
"name": "scene",
|
||||
"label": "场景",
|
||||
"icon": "",
|
||||
"script": "var d={name:'scene',label:'场景',content:{widgettype:'urlwidget',options:{url:'/scene/index.ui'}}};if(!this.opts.items.find(function(i){return i.name==='scene'})){this.opts.items.push(d);this.add_tab(d)}this.show_tabcontent({params:{name:'scene'}})"
|
||||
},
|
||||
{
|
||||
"name": "entity",
|
||||
"label": "实体",
|
||||
"icon": "",
|
||||
"script": "var d={name:'entity',label:'实体',content:{widgettype:'urlwidget',options:{url:'/entity/index.ui'}}};if(!this.opts.items.find(function(i){return i.name==='entity'})){this.opts.items.push(d);this.add_tab(d)}this.show_tabcontent({params:{name:'entity'}})"
|
||||
},
|
||||
{
|
||||
"name": "script_engine",
|
||||
"label": "脚本引擎",
|
||||
"icon": "",
|
||||
"script": "var d={name:'script_engine',label:'脚本引擎',content:{widgettype:'urlwidget',options:{url:'/script_engine/index.ui'}}};if(!this.opts.items.find(function(i){return i.name==='script_engine'})){this.opts.items.push(d);this.add_tab(d)}this.show_tabcontent({params:{name:'script_engine'}})"
|
||||
},
|
||||
{
|
||||
"name": "world_snapshot",
|
||||
"label": "世界快照",
|
||||
"icon": "",
|
||||
"script": "var d={name:'world_snapshot',label:'世界快照',content:{widgettype:'urlwidget',options:{url:'/world_snapshot/index.ui'}}};if(!this.opts.items.find(function(i){return i.name==='world_snapshot'})){this.opts.items.push(d);this.add_tab(d)}this.show_tabcontent({params:{name:'world_snapshot'}})"
|
||||
},
|
||||
{
|
||||
"name": "world_sync",
|
||||
"label": "世界同步",
|
||||
"icon": "",
|
||||
"script": "var d={name:'world_sync',label:'世界同步',content:{widgettype:'urlwidget',options:{url:'/world_sync/index.ui'}}};if(!this.opts.items.find(function(i){return i.name==='world_sync'})){this.opts.items.push(d);this.add_tab(d)}this.show_tabcontent({params:{name:'world_sync'}})"
|
||||
},
|
||||
{
|
||||
"name": "scense_demo",
|
||||
"label": "实时演示",
|
||||
"icon": "",
|
||||
"script": "var d={name:'scense_demo',label:'实时演示',content:{widgettype:'urlwidget',options:{url:'/scense_demo/index.ui'}}};if(!this.opts.items.find(function(i){return i.name==='scense_demo'})){this.opts.items.push(d);this.add_tab(d)}this.show_tabcontent({params:{name:'scense_demo'}})"
|
||||
},
|
||||
{
|
||||
"name": "scense_game",
|
||||
"label": "游戏展示",
|
||||
"icon": "",
|
||||
"script": "var d={name:'scense_game',label:'游戏展示',content:{widgettype:'urlwidget',options:{url:'/scense_game/game/index.ui'}}};if(!this.opts.items.find(function(i){return i.name==='scense_game'})){this.opts.items.push(d);this.add_tab(d)}this.show_tabcontent({params:{name:'scense_game'}})"
|
||||
},
|
||||
{
|
||||
"name": "scense_drag",
|
||||
"label": "拖拽编程",
|
||||
"icon": "",
|
||||
"script": "var d={name:'scense_drag',label:'拖拽编程',content:{widgettype:'urlwidget',options:{url:'/scense_drag/editor.ui'}}};if(!this.opts.items.find(function(i){return i.name==='scense_drag'})){this.opts.items.push(d);this.add_tab(d)}this.show_tabcontent({params:{name:'scense_drag'}})"
|
||||
},
|
||||
{
|
||||
"name": "scense_runtime",
|
||||
"label": "运行时",
|
||||
"icon": "",
|
||||
"script": "var d={name:'scense_runtime',label:'运行时',content:{widgettype:'urlwidget',options:{url:'/scense_runtime/index.ui'}}};if(!this.opts.items.find(function(i){return i.name==='scense_runtime'})){this.opts.items.push(d);this.add_tab(d)}this.show_tabcontent({params:{name:'scense_runtime'}})"
|
||||
"script": "var d={name:'play_game',label:'展示 + Play',content:{widgettype:'urlwidget',options:{url:'/scense_game/game/play_hub.ui'}}};if(!this.opts.items.find(function(i){return i.name==='play_game'})){this.opts.items.push(d);this.add_tab(d)}this.show_tabcontent({params:{name:'play_game'}})"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user