整理代码,WIDGET.lnk系列函数移出WIDGET模块
This commit is contained in:
@@ -191,52 +191,52 @@ scene.widgetList={
|
||||
WIDGET.newSelector{name="sequence",
|
||||
x=1080,y=60,w=200,color="yellow",
|
||||
list={"bag","his4","rnd","reverb","loop","fixed"},
|
||||
disp=WIDGET.lnk_CUSval("sequence"),
|
||||
code=WIDGET.lnk_CUSsto("sequence")
|
||||
disp=lnk_CUSval("sequence"),
|
||||
code=lnk_CUSsto("sequence")
|
||||
},
|
||||
|
||||
WIDGET.newKey{name="Z", x=120,y=460,w=80,font=50,code=WIDGET.lnk_pressKey(1)},
|
||||
WIDGET.newKey{name="S", x=200,y=460,w=80,font=50,code=WIDGET.lnk_pressKey(2)},
|
||||
WIDGET.newKey{name="J", x=280,y=460,w=80,font=50,code=WIDGET.lnk_pressKey(3)},
|
||||
WIDGET.newKey{name="L", x=360,y=460,w=80,font=50,code=WIDGET.lnk_pressKey(4)},
|
||||
WIDGET.newKey{name="T", x=440,y=460,w=80,font=50,code=WIDGET.lnk_pressKey(5)},
|
||||
WIDGET.newKey{name="O", x=520,y=460,w=80,font=50,code=WIDGET.lnk_pressKey(6)},
|
||||
WIDGET.newKey{name="I", x=600,y=460,w=80,font=50,code=WIDGET.lnk_pressKey(7)},
|
||||
WIDGET.newKey{name="left", x=680,y=460,w=80,color="lGreen",font=55,code=WIDGET.lnk_pressKey("left")},
|
||||
WIDGET.newKey{name="right", x=760,y=460,w=80,color="lGreen",font=55,code=WIDGET.lnk_pressKey("right")},
|
||||
WIDGET.newKey{name="ten", x=840,y=460,w=80,color="lGreen",font=40,code=WIDGET.lnk_pressKey("ten")},
|
||||
WIDGET.newKey{name="backsp",x=920,y=460,w=80,color="lYellow",font=50,code=WIDGET.lnk_pressKey("backspace")},
|
||||
WIDGET.newKey{name="reset", x=1000,y=460,w=80,color="lYellow",font=25,code=WIDGET.lnk_pressKey("delete")},
|
||||
WIDGET.newKey{name="Z", x=120,y=460,w=80,font=50,code=pressKey(1)},
|
||||
WIDGET.newKey{name="S", x=200,y=460,w=80,font=50,code=pressKey(2)},
|
||||
WIDGET.newKey{name="J", x=280,y=460,w=80,font=50,code=pressKey(3)},
|
||||
WIDGET.newKey{name="L", x=360,y=460,w=80,font=50,code=pressKey(4)},
|
||||
WIDGET.newKey{name="T", x=440,y=460,w=80,font=50,code=pressKey(5)},
|
||||
WIDGET.newKey{name="O", x=520,y=460,w=80,font=50,code=pressKey(6)},
|
||||
WIDGET.newKey{name="I", x=600,y=460,w=80,font=50,code=pressKey(7)},
|
||||
WIDGET.newKey{name="left", x=680,y=460,w=80,color="lGreen",font=55,code=pressKey"left"},
|
||||
WIDGET.newKey{name="right", x=760,y=460,w=80,color="lGreen",font=55,code=pressKey"right"},
|
||||
WIDGET.newKey{name="ten", x=840,y=460,w=80,color="lGreen",font=40,code=pressKey"ten"},
|
||||
WIDGET.newKey{name="backsp",x=920,y=460,w=80,color="lYellow",font=50,code=pressKey"backspace"},
|
||||
WIDGET.newKey{name="reset", x=1000,y=460,w=80,color="lYellow",font=25,code=pressKey"delete"},
|
||||
|
||||
WIDGET.newKey{name="Z5", x=120,y=540,w=80,color="lGrey",font=50,code=WIDGET.lnk_pressKey(8)},
|
||||
WIDGET.newKey{name="S5", x=200,y=540,w=80,color="lGrey",font=50,code=WIDGET.lnk_pressKey(9)},
|
||||
WIDGET.newKey{name="P", x=280,y=540,w=80,color="lGrey",font=50,code=WIDGET.lnk_pressKey(10)},
|
||||
WIDGET.newKey{name="Q", x=360,y=540,w=80,color="lGrey",font=50,code=WIDGET.lnk_pressKey(11)},
|
||||
WIDGET.newKey{name="F", x=440,y=540,w=80,color="lGrey",font=50,code=WIDGET.lnk_pressKey(12)},
|
||||
WIDGET.newKey{name="E", x=520,y=540,w=80,color="lGrey",font=50,code=WIDGET.lnk_pressKey(13)},
|
||||
WIDGET.newKey{name="T5", x=600,y=540,w=80,color="lGrey",font=50,code=WIDGET.lnk_pressKey(14)},
|
||||
WIDGET.newKey{name="U", x=680,y=540,w=80,color="lGrey",font=50,code=WIDGET.lnk_pressKey(15)},
|
||||
WIDGET.newKey{name="V", x=760,y=540,w=80,color="lGrey",font=50,code=WIDGET.lnk_pressKey(16)},
|
||||
WIDGET.newKey{name="I3", x=840,y=540,w=80,color="grey",font=50,code=WIDGET.lnk_pressKey(26)},
|
||||
WIDGET.newKey{name="C", x=920,y=540,w=80,color="grey",font=50,code=WIDGET.lnk_pressKey(27)},
|
||||
WIDGET.newKey{name="rnd", x=1000,y=540,w=80,color="red",font=25,code=WIDGET.lnk_pressKey("=")},
|
||||
WIDGET.newKey{name="Z5", x=120,y=540,w=80,color="lGrey",font=50,code=pressKey(8)},
|
||||
WIDGET.newKey{name="S5", x=200,y=540,w=80,color="lGrey",font=50,code=pressKey(9)},
|
||||
WIDGET.newKey{name="P", x=280,y=540,w=80,color="lGrey",font=50,code=pressKey(10)},
|
||||
WIDGET.newKey{name="Q", x=360,y=540,w=80,color="lGrey",font=50,code=pressKey(11)},
|
||||
WIDGET.newKey{name="F", x=440,y=540,w=80,color="lGrey",font=50,code=pressKey(12)},
|
||||
WIDGET.newKey{name="E", x=520,y=540,w=80,color="lGrey",font=50,code=pressKey(13)},
|
||||
WIDGET.newKey{name="T5", x=600,y=540,w=80,color="lGrey",font=50,code=pressKey(14)},
|
||||
WIDGET.newKey{name="U", x=680,y=540,w=80,color="lGrey",font=50,code=pressKey(15)},
|
||||
WIDGET.newKey{name="V", x=760,y=540,w=80,color="lGrey",font=50,code=pressKey(16)},
|
||||
WIDGET.newKey{name="I3", x=840,y=540,w=80,color="grey",font=50,code=pressKey(26)},
|
||||
WIDGET.newKey{name="C", x=920,y=540,w=80,color="grey",font=50,code=pressKey(27)},
|
||||
WIDGET.newKey{name="rnd", x=1000,y=540,w=80,color="red",font=25,code=pressKey"="},
|
||||
|
||||
WIDGET.newKey{name="W", x=120,y=620,w=80,color="lGrey",font=50,code=WIDGET.lnk_pressKey(17)},
|
||||
WIDGET.newKey{name="X", x=200,y=620,w=80,color="lGrey",font=50,code=WIDGET.lnk_pressKey(18)},
|
||||
WIDGET.newKey{name="J5", x=280,y=620,w=80,color="lGrey",font=50,code=WIDGET.lnk_pressKey(19)},
|
||||
WIDGET.newKey{name="L5", x=360,y=620,w=80,color="lGrey",font=50,code=WIDGET.lnk_pressKey(20)},
|
||||
WIDGET.newKey{name="R", x=440,y=620,w=80,color="lGrey",font=50,code=WIDGET.lnk_pressKey(21)},
|
||||
WIDGET.newKey{name="Y", x=520,y=620,w=80,color="lGrey",font=50,code=WIDGET.lnk_pressKey(22)},
|
||||
WIDGET.newKey{name="N", x=600,y=620,w=80,color="lGrey",font=50,code=WIDGET.lnk_pressKey(23)},
|
||||
WIDGET.newKey{name="H", x=680,y=620,w=80,color="lGrey",font=50,code=WIDGET.lnk_pressKey(24)},
|
||||
WIDGET.newKey{name="I5", x=760,y=620,w=80,color="lGrey",font=50,code=WIDGET.lnk_pressKey(25)},
|
||||
WIDGET.newKey{name="I2", x=840,y=620,w=80,color="dGrey",font=50,code=WIDGET.lnk_pressKey(28)},
|
||||
WIDGET.newKey{name="O1", x=920,y=620,w=80,color="dGrey",font=50,code=WIDGET.lnk_pressKey(29)},
|
||||
WIDGET.newKey{name="W", x=120,y=620,w=80,color="lGrey",font=50,code=pressKey(17)},
|
||||
WIDGET.newKey{name="X", x=200,y=620,w=80,color="lGrey",font=50,code=pressKey(18)},
|
||||
WIDGET.newKey{name="J5", x=280,y=620,w=80,color="lGrey",font=50,code=pressKey(19)},
|
||||
WIDGET.newKey{name="L5", x=360,y=620,w=80,color="lGrey",font=50,code=pressKey(20)},
|
||||
WIDGET.newKey{name="R", x=440,y=620,w=80,color="lGrey",font=50,code=pressKey(21)},
|
||||
WIDGET.newKey{name="Y", x=520,y=620,w=80,color="lGrey",font=50,code=pressKey(22)},
|
||||
WIDGET.newKey{name="N", x=600,y=620,w=80,color="lGrey",font=50,code=pressKey(23)},
|
||||
WIDGET.newKey{name="H", x=680,y=620,w=80,color="lGrey",font=50,code=pressKey(24)},
|
||||
WIDGET.newKey{name="I5", x=760,y=620,w=80,color="lGrey",font=50,code=pressKey(25)},
|
||||
WIDGET.newKey{name="I2", x=840,y=620,w=80,color="dGrey",font=50,code=pressKey(28)},
|
||||
WIDGET.newKey{name="O1", x=920,y=620,w=80,color="dGrey",font=50,code=pressKey(29)},
|
||||
|
||||
|
||||
WIDGET.newButton{name="copy", x=1140, y=460,w=170,h=80,color="lRed", font=40,code=WIDGET.lnk_pressKey("cC"),hide=function()return #BAG==0 end},
|
||||
WIDGET.newButton{name="paste", x=1140, y=550,w=170,h=80,color="lBlue", font=40,code=WIDGET.lnk_pressKey("cV")},
|
||||
WIDGET.newButton{name="back", x=1140, y=640, w=170,h=80, font=40,code=WIDGET.lnk_BACK},
|
||||
WIDGET.newButton{name="copy", x=1140, y=460,w=170,h=80,color="lRed", font=40,code=pressKey"cC",hide=function()return #BAG==0 end},
|
||||
WIDGET.newButton{name="paste", x=1140, y=550,w=170,h=80,color="lBlue", font=40,code=pressKey"cV"},
|
||||
WIDGET.newButton{name="back", x=1140, y=640, w=170,h=80, font=40,code=backScene},
|
||||
}
|
||||
|
||||
return scene
|
||||
Reference in New Issue
Block a user