cmd新增demo命令

This commit is contained in:
MrZ626
2021-03-18 11:12:53 +08:00
parent d5043446d9
commit 0cca8f2c83
2 changed files with 13 additions and 0 deletions

View File

@@ -209,6 +209,14 @@ do--commands.help(arg)
"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)
local command_help_list={
@@ -233,6 +241,7 @@ do--commands.help(arg)
"stopbgm",
"setbg",
"theme",
"demo",
}
local pageSize=10
local maxPage=math.ceil(#command_help_list/pageSize)
@@ -488,6 +497,9 @@ function commands.theme(name)
log{C.water,"Usage: theme [themeName]"}
end
end
function commands.demo()
SCN.go("empty","none")
end

1
parts/scenes/empty.lua Normal file
View File

@@ -0,0 +1 @@
return{}