音乐室和音效室可以互相快速切换
This commit is contained in:
@@ -42,6 +42,8 @@ function scene.keyDown(key)
|
||||
else
|
||||
BGM.stop()
|
||||
end
|
||||
elseif key=="tab"then
|
||||
SCN.swapTo("sound","none")
|
||||
elseif key=="escape"then
|
||||
SCN.back()
|
||||
end
|
||||
@@ -88,6 +90,7 @@ scene.widgetList={
|
||||
WIDGET.newButton{name="up", x=200, y=250,w=120, font=55,code=pressKey"up",hide=function()return selected==1 end},
|
||||
WIDGET.newButton{name="play", x=200, y=390,w=120, font=35,code=pressKey"space"},
|
||||
WIDGET.newButton{name="down", x=200, y=530,w=120, font=55,code=pressKey"down",hide=function()return selected==BGM.getCount()end},
|
||||
WIDGET.newButton{name="sound", 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},
|
||||
}
|
||||
|
||||
|
||||
@@ -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},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user