cmd新增demo命令
This commit is contained in:
@@ -209,6 +209,14 @@ do--commands.help(arg)
|
|||||||
"Usage: theme <classic|xmas|sprfes|zday>",
|
"Usage: theme <classic|xmas|sprfes|zday>",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
demo={
|
||||||
|
description="Go to an empty demo scene",
|
||||||
|
details={
|
||||||
|
"Go to an empty demo scene",
|
||||||
|
"",
|
||||||
|
"Usage: demo",
|
||||||
|
},
|
||||||
|
},
|
||||||
}TABLE.reIndex(command_help_messages)
|
}TABLE.reIndex(command_help_messages)
|
||||||
|
|
||||||
local command_help_list={
|
local command_help_list={
|
||||||
@@ -233,6 +241,7 @@ do--commands.help(arg)
|
|||||||
"stopbgm",
|
"stopbgm",
|
||||||
"setbg",
|
"setbg",
|
||||||
"theme",
|
"theme",
|
||||||
|
"demo",
|
||||||
}
|
}
|
||||||
local pageSize=10
|
local pageSize=10
|
||||||
local maxPage=math.ceil(#command_help_list/pageSize)
|
local maxPage=math.ceil(#command_help_list/pageSize)
|
||||||
@@ -488,6 +497,9 @@ function commands.theme(name)
|
|||||||
log{C.water,"Usage: theme [themeName]"}
|
log{C.water,"Usage: theme [themeName]"}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
function commands.demo()
|
||||||
|
SCN.go("empty","none")
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
1
parts/scenes/empty.lua
Normal file
1
parts/scenes/empty.lua
Normal file
@@ -0,0 +1 @@
|
|||||||
|
return{}
|
||||||
Reference in New Issue
Block a user