自定义序列ui调整,支持新增的1~3连块和随机生成一包
This commit is contained in:
@@ -20,10 +20,11 @@ local minoKey={
|
||||
z=1,s=2,j=3,l=4,t=5,o=6,i=7,
|
||||
p=10,q=11,f=12,e=13,u=15,
|
||||
v=16,w=17,x=18,r=21,y=22,n=23,h=24,
|
||||
["/"]=26,c=27,[","]=27,["'"]=27,["-"]=28,[";"]=28,["."]=29,
|
||||
}
|
||||
local minoKey2={
|
||||
["1"]=8,["2"]=9,["3"]=19,["4"]=20,["5"]=14,["7"]=25,
|
||||
z=8,s=9,t=14,j=19,l=20,i=25
|
||||
z=8,s=9,t=14,j=19,l=20,i=25,["-"]=26,o=29,
|
||||
}
|
||||
function scene.keyDown(key)
|
||||
if key=="left"then
|
||||
@@ -194,41 +195,47 @@ scene.widgetList={
|
||||
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=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=50,code=WIDGET.lnk_pressKey("delete")},
|
||||
|
||||
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=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=50,code=WIDGET.lnk_pressKey("=")},
|
||||
|
||||
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="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.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},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user