From 0cca8f2c83a2046d6c93930649800bd099f958da Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Thu, 18 Mar 2021 11:12:53 +0800 Subject: [PATCH] =?UTF-8?q?cmd=E6=96=B0=E5=A2=9Edemo=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/app_cmd.lua | 12 ++++++++++++ parts/scenes/empty.lua | 1 + 2 files changed, 13 insertions(+) create mode 100644 parts/scenes/empty.lua diff --git a/parts/scenes/app_cmd.lua b/parts/scenes/app_cmd.lua index 34bccd86..e9931fd4 100644 --- a/parts/scenes/app_cmd.lua +++ b/parts/scenes/app_cmd.lua @@ -209,6 +209,14 @@ do--commands.help(arg) "Usage: theme ", }, }, + 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 diff --git a/parts/scenes/empty.lua b/parts/scenes/empty.lua new file mode 100644 index 00000000..7c671d9e --- /dev/null +++ b/parts/scenes/empty.lua @@ -0,0 +1 @@ +return{} \ No newline at end of file