新功能:音效室(初版)

This commit is contained in:
MrZ626
2020-10-26 00:38:13 +08:00
parent ec23f8f420
commit cc4b9b3b91
4 changed files with 402 additions and 2 deletions

View File

@@ -168,7 +168,8 @@ local Widgets={
newButton({name="music", x=370,y=555,w=200,h=90,color="dGreen", font=30,code=goScene("music")}),
newButton({name="quit", x=590,y=555,w=200,h=90,color="grey", font=45,code=function()VOC.play("bye")SCN.swapTo("quit","slowFade")end}),
newKey({name="account", x=150,y=650,w=200,h=60,color="red", code=function()SCN.go(LOGIN and"account"or"login")end}),
newKey({name="minigame", x=370,y=650,w=200,h=60,color="blue", code=goScene("minigame")}),
newKey({name="sound", x=370,y=650,w=200,h=60,color="green", code=goScene("sound")}),
newKey({name="minigame", x=590,y=650,w=200,h=60,color="blue", code=goScene("minigame")}),
},
mode={
newButton({name="start", x=1040, y=655,w=180,h=80, font=40,code=pressKey("return"),hide=function()return not mapCam.sel end}),
@@ -679,6 +680,67 @@ local Widgets={
newText({name="title", x=80, y=50,font=70,align="L"}),
newButton({name="back", x=1140, y=640,w=170,h=80,font=40,code=BACK}),
},
sound={
newText({name="title", x=30, y=15,font=70,align="L"}),
newKey({name="move", x=100, y=140,w=140,h=50,code=function()SFX.play("move")end}),
newKey({name="lock", x=100, y=205,w=140,h=50,code=function()SFX.play("lock")end}),
newKey({name="drop", x=100, y=270,w=140,h=50,code=function()SFX.play("drop")end}),
newKey({name="fall", x=100, y=335,w=140,h=50,code=function()SFX.play("fall")end}),
newKey({name="rotate", x=100, y=400,w=140,h=50,code=function()SFX.play("rotate")end}),
newKey({name="rotatekick", x=100, y=465,w=140,h=50,code=function()SFX.play("rotatekick")end}),
newKey({name="hold", x=100, y=530,w=140,h=50,code=function()SFX.play("hold")end}),
newKey({name="prerotate", x=100, y=595,w=140,h=50,code=function()SFX.play("prerotate")end}),
newKey({name="prehold", x=100, y=660,w=140,h=50,code=function()SFX.play("prehold")end}),
newKey({name="_1", x=260, y=140,w=140,h=50,code=function()SFX.play("clear_1")end}),
newKey({name="_2", x=260, y=205,w=140,h=50,code=function()SFX.play("clear_2")end}),
newKey({name="_3", x=260, y=270,w=140,h=50,code=function()SFX.play("clear_3")end}),
newKey({name="_4", x=260, y=335,w=140,h=50,code=function()SFX.play("clear_4")end}),
newKey({name="spin0", x=260, y=400,w=140,h=50,code=function()SFX.play("spin_0")end}),
newKey({name="spin1", x=260, y=465,w=140,h=50,code=function()SFX.play("spin_1")end}),
newKey({name="spin2", x=260, y=530,w=140,h=50,code=function()SFX.play("spin_2")end}),
newKey({name="spin3", x=260, y=595,w=140,h=50,code=function()SFX.play("spin_3")end}),
newKey({name="z0", x=660, y=80,w=140,h=50,code=pressKey(10)}),
newKey({name="z1", x=660, y=145,w=140,h=50,code=pressKey(11)}),
newKey({name="z2", x=660, y=210,w=140,h=50,code=pressKey(12)}),
newKey({name="z3", x=660, y=275,w=140,h=50,code=pressKey(13)}),
newKey({name="t0", x=660, y=340,w=140,h=50,code=pressKey(50)}),
newKey({name="t1", x=660, y=405,w=140,h=50,code=pressKey(51)}),
newKey({name="t2", x=660, y=470,w=140,h=50,code=pressKey(52)}),
newKey({name="t3", x=660, y=535,w=140,h=50,code=pressKey(53)}),
newKey({name="s0", x=820, y=80,w=140,h=50,code=pressKey(20)}),
newKey({name="s1", x=820, y=145,w=140,h=50,code=pressKey(21)}),
newKey({name="s2", x=820, y=210,w=140,h=50,code=pressKey(22)}),
newKey({name="s3", x=820, y=275,w=140,h=50,code=pressKey(23)}),
newKey({name="o0", x=820, y=340,w=140,h=50,code=pressKey(60)}),
newKey({name="o1", x=820, y=405,w=140,h=50,code=pressKey(61)}),
newKey({name="o2", x=820, y=470,w=140,h=50,code=pressKey(62)}),
newKey({name="o3", x=820, y=535,w=140,h=50,code=pressKey(63)}),
newKey({name="j0", x=980, y=80,w=140,h=50,code=pressKey(30)}),
newKey({name="j1", x=980, y=145,w=140,h=50,code=pressKey(31)}),
newKey({name="j2", x=980, y=210,w=140,h=50,code=pressKey(32)}),
newKey({name="j3", x=980, y=275,w=140,h=50,code=pressKey(33)}),
newKey({name="i0", x=980, y=340,w=140,h=50,code=pressKey(70)}),
newKey({name="i1", x=980, y=405,w=140,h=50,code=pressKey(71)}),
newKey({name="i2", x=980, y=470,w=140,h=50,code=pressKey(72)}),
newKey({name="i3", x=980, y=535,w=140,h=50,code=pressKey(73)}),
newKey({name="l0", x=1140, y=80,w=140,h=50,code=pressKey(40)}),
newKey({name="l1", x=1140, y=145,w=140,h=50,code=pressKey(41)}),
newKey({name="l2", x=1140, y=210,w=140,h=50,code=pressKey(42)}),
newKey({name="l3", x=1140, y=275,w=140,h=50,code=pressKey(43)}),
newSwitch({name="mini", x=380, y=660,disp=STPval("mini"),code=pressKey("1")}),
newSwitch({name="b2b", x=560, y=660,disp=STPval("b2b"),code=pressKey("2")}),
newSwitch({name="b3b", x=740, y=660,disp=STPval("b3b"),code=pressKey("3")}),
newSwitch({name="pc", x=940, y=660,disp=STPval("pc"),code=pressKey("4")}),
newButton({name="back", x=1140, y=640,w=170,h=80,font=40,code=BACK}),
},
minigame={
newButton({name="p15", x=240, y=250,w=350,h=120,font=40,code=goScene("p15")}),
newButton({name="schulte_G",x=640, y=250,w=350,h=120,font=40,code=goScene("schulte_G")}),