音乐室和音效室可以互相快速切换

This commit is contained in:
MrZ626
2021-03-26 19:31:17 +08:00
parent b0eac8af63
commit 612850efb6
2 changed files with 6 additions and 0 deletions

View File

@@ -30,6 +30,8 @@ function scene.keyDown(key)
end
if lineCount[key%10]then VOC.play(lineCount[key%10],CHN)end
if pc then VOC.play("perfect_clear",CHN)end
elseif key=="tab"then
SCN.swapTo("music","none")
elseif key=="escape"then
SCN.back()
end
@@ -102,6 +104,7 @@ scene.widgetList={
WIDGET.newSwitch{name="b3b", x=515, y=595,font=25,disp=function()return b3b end,code=pressKey"3"},
WIDGET.newSwitch{name="pc", x=515, y=660,font=25,disp=function()return pc end,code=pressKey"4"},
WIDGET.newButton{name="music", x=1140, y=540,w=170,h=80,font=40,code=pressKey"tab"},
WIDGET.newButton{name="back", x=1140, y=640,w=170,h=80,font=40,code=backScene},
}