控件系统微调,lnk系列函数移出table
This commit is contained in:
@@ -178,44 +178,44 @@ WIDGET.init("custom_sequence",{
|
||||
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=WIDGET.lnk_CUSval("sequence"),
|
||||
code=WIDGET.lnk_CUSsto("sequence")
|
||||
}),
|
||||
|
||||
WIDGET.newKey({name="Z", x=100,y=440,w=90,font=50,code=WIDGET.lnk.pressKey(1)}),
|
||||
WIDGET.newKey({name="S", x=200,y=440,w=90,font=50,code=WIDGET.lnk.pressKey(2)}),
|
||||
WIDGET.newKey({name="J", x=300,y=440,w=90,font=50,code=WIDGET.lnk.pressKey(3)}),
|
||||
WIDGET.newKey({name="L", x=400,y=440,w=90,font=50,code=WIDGET.lnk.pressKey(4)}),
|
||||
WIDGET.newKey({name="T", x=500,y=440,w=90,font=50,code=WIDGET.lnk.pressKey(5)}),
|
||||
WIDGET.newKey({name="O", x=600,y=440,w=90,font=50,code=WIDGET.lnk.pressKey(6)}),
|
||||
WIDGET.newKey({name="I", x=700,y=440,w=90,font=50,code=WIDGET.lnk.pressKey(7)}),
|
||||
WIDGET.newKey({name="Z", x=100,y=440,w=90,font=50,code=WIDGET.lnk_pressKey(1)}),
|
||||
WIDGET.newKey({name="S", x=200,y=440,w=90,font=50,code=WIDGET.lnk_pressKey(2)}),
|
||||
WIDGET.newKey({name="J", x=300,y=440,w=90,font=50,code=WIDGET.lnk_pressKey(3)}),
|
||||
WIDGET.newKey({name="L", x=400,y=440,w=90,font=50,code=WIDGET.lnk_pressKey(4)}),
|
||||
WIDGET.newKey({name="T", x=500,y=440,w=90,font=50,code=WIDGET.lnk_pressKey(5)}),
|
||||
WIDGET.newKey({name="O", x=600,y=440,w=90,font=50,code=WIDGET.lnk_pressKey(6)}),
|
||||
WIDGET.newKey({name="I", x=700,y=440,w=90,font=50,code=WIDGET.lnk_pressKey(7)}),
|
||||
|
||||
WIDGET.newKey({name="Z5", x=100,y=540,w=90,color="grey",font=50,code=WIDGET.lnk.pressKey(8)}),
|
||||
WIDGET.newKey({name="S5", x=200,y=540,w=90,color="grey",font=50,code=WIDGET.lnk.pressKey(9)}),
|
||||
WIDGET.newKey({name="P", x=300,y=540,w=90,color="grey",font=50,code=WIDGET.lnk.pressKey(10)}),
|
||||
WIDGET.newKey({name="Q", x=400,y=540,w=90,color="grey",font=50,code=WIDGET.lnk.pressKey(11)}),
|
||||
WIDGET.newKey({name="F", x=500,y=540,w=90,color="grey",font=50,code=WIDGET.lnk.pressKey(12)}),
|
||||
WIDGET.newKey({name="E", x=600,y=540,w=90,color="grey",font=50,code=WIDGET.lnk.pressKey(13)}),
|
||||
WIDGET.newKey({name="T5", x=700,y=540,w=90,color="grey",font=50,code=WIDGET.lnk.pressKey(14)}),
|
||||
WIDGET.newKey({name="U", x=800,y=540,w=90,color="grey",font=50,code=WIDGET.lnk.pressKey(15)}),
|
||||
WIDGET.newKey({name="V", x=900,y=540,w=90,color="grey",font=50,code=WIDGET.lnk.pressKey(16)}),
|
||||
WIDGET.newKey({name="W", x=100,y=640,w=90,color="grey",font=50,code=WIDGET.lnk.pressKey(17)}),
|
||||
WIDGET.newKey({name="X", x=200,y=640,w=90,color="grey",font=50,code=WIDGET.lnk.pressKey(18)}),
|
||||
WIDGET.newKey({name="J5", x=300,y=640,w=90,color="grey",font=50,code=WIDGET.lnk.pressKey(19)}),
|
||||
WIDGET.newKey({name="L5", x=400,y=640,w=90,color="grey",font=50,code=WIDGET.lnk.pressKey(20)}),
|
||||
WIDGET.newKey({name="R", x=500,y=640,w=90,color="grey",font=50,code=WIDGET.lnk.pressKey(21)}),
|
||||
WIDGET.newKey({name="Y", x=600,y=640,w=90,color="grey",font=50,code=WIDGET.lnk.pressKey(22)}),
|
||||
WIDGET.newKey({name="N", x=700,y=640,w=90,color="grey",font=50,code=WIDGET.lnk.pressKey(23)}),
|
||||
WIDGET.newKey({name="H", x=800,y=640,w=90,color="grey",font=50,code=WIDGET.lnk.pressKey(24)}),
|
||||
WIDGET.newKey({name="I5", x=900,y=640,w=90,color="grey",font=50,code=WIDGET.lnk.pressKey(25)}),
|
||||
WIDGET.newKey({name="Z5", x=100,y=540,w=90,color="grey",font=50,code=WIDGET.lnk_pressKey(8)}),
|
||||
WIDGET.newKey({name="S5", x=200,y=540,w=90,color="grey",font=50,code=WIDGET.lnk_pressKey(9)}),
|
||||
WIDGET.newKey({name="P", x=300,y=540,w=90,color="grey",font=50,code=WIDGET.lnk_pressKey(10)}),
|
||||
WIDGET.newKey({name="Q", x=400,y=540,w=90,color="grey",font=50,code=WIDGET.lnk_pressKey(11)}),
|
||||
WIDGET.newKey({name="F", x=500,y=540,w=90,color="grey",font=50,code=WIDGET.lnk_pressKey(12)}),
|
||||
WIDGET.newKey({name="E", x=600,y=540,w=90,color="grey",font=50,code=WIDGET.lnk_pressKey(13)}),
|
||||
WIDGET.newKey({name="T5", x=700,y=540,w=90,color="grey",font=50,code=WIDGET.lnk_pressKey(14)}),
|
||||
WIDGET.newKey({name="U", x=800,y=540,w=90,color="grey",font=50,code=WIDGET.lnk_pressKey(15)}),
|
||||
WIDGET.newKey({name="V", x=900,y=540,w=90,color="grey",font=50,code=WIDGET.lnk_pressKey(16)}),
|
||||
WIDGET.newKey({name="W", x=100,y=640,w=90,color="grey",font=50,code=WIDGET.lnk_pressKey(17)}),
|
||||
WIDGET.newKey({name="X", x=200,y=640,w=90,color="grey",font=50,code=WIDGET.lnk_pressKey(18)}),
|
||||
WIDGET.newKey({name="J5", x=300,y=640,w=90,color="grey",font=50,code=WIDGET.lnk_pressKey(19)}),
|
||||
WIDGET.newKey({name="L5", x=400,y=640,w=90,color="grey",font=50,code=WIDGET.lnk_pressKey(20)}),
|
||||
WIDGET.newKey({name="R", x=500,y=640,w=90,color="grey",font=50,code=WIDGET.lnk_pressKey(21)}),
|
||||
WIDGET.newKey({name="Y", x=600,y=640,w=90,color="grey",font=50,code=WIDGET.lnk_pressKey(22)}),
|
||||
WIDGET.newKey({name="N", x=700,y=640,w=90,color="grey",font=50,code=WIDGET.lnk_pressKey(23)}),
|
||||
WIDGET.newKey({name="H", x=800,y=640,w=90,color="grey",font=50,code=WIDGET.lnk_pressKey(24)}),
|
||||
WIDGET.newKey({name="I5", x=900,y=640,w=90,color="grey",font=50,code=WIDGET.lnk_pressKey(25)}),
|
||||
|
||||
WIDGET.newKey({name="left", x=800, y=440,w=90, color="lGreen", font=55,code=WIDGET.lnk.pressKey("left")}),
|
||||
WIDGET.newKey({name="right", x=900, y=440,w=90, color="lGreen", font=55,code=WIDGET.lnk.pressKey("right")}),
|
||||
WIDGET.newKey({name="ten", x=1000, y=440,w=90, color="lGreen", font=40,code=WIDGET.lnk.pressKey("ten")}),
|
||||
WIDGET.newKey({name="backsp", x=1000, y=540,w=90, color="lYellow",font=50,code=WIDGET.lnk.pressKey("backspace")}),
|
||||
WIDGET.newKey({name="reset", x=1000, y=640,w=90, color="lYellow",font=50,code=WIDGET.lnk.pressKey("delete")}),
|
||||
WIDGET.newButton({name="copy", x=1140, y=440,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=540,w=170,h=80,color="lBlue", font=40,code=WIDGET.lnk.pressKey("cV")}),
|
||||
WIDGET.newKey({name="left", x=800, y=440,w=90, color="lGreen", font=55,code=WIDGET.lnk_pressKey("left")}),
|
||||
WIDGET.newKey({name="right", x=900, y=440,w=90, color="lGreen", font=55,code=WIDGET.lnk_pressKey("right")}),
|
||||
WIDGET.newKey({name="ten", x=1000, y=440,w=90, color="lGreen", font=40,code=WIDGET.lnk_pressKey("ten")}),
|
||||
WIDGET.newKey({name="backsp", x=1000, y=540,w=90, color="lYellow",font=50,code=WIDGET.lnk_pressKey("backspace")}),
|
||||
WIDGET.newKey({name="reset", x=1000, y=640,w=90, color="lYellow",font=50,code=WIDGET.lnk_pressKey("delete")}),
|
||||
WIDGET.newButton({name="copy", x=1140, y=440,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=540,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="back", x=1140, y=640, w=170,h=80, font=40,code=WIDGET.lnk_BACK}),
|
||||
})
|
||||
Reference in New Issue
Block a user