@@ -75,19 +75,19 @@ local function selAct(mode,act)
75
75
end
76
76
77
77
scene .widgetList = {
78
- {type = ' button' , x = 600 ,y = 80 , w = 200 ,h = 70 ,cornerR = 0 ,text = LANG " keyset_brik_moveLeft" , fontSize = 20 ,color = ' lG' ,code = selAct (' brik' ,' moveLeft' )},
79
- {type = ' button' , x = 600 ,y = 160 ,w = 200 ,h = 70 ,cornerR = 0 ,text = LANG " keyset_brik_moveRight" , fontSize = 20 ,color = ' lG' ,code = selAct (' brik' ,' moveRight' )},
80
- {type = ' button' , x = 600 ,y = 240 ,w = 200 ,h = 70 ,cornerR = 0 ,text = LANG " keyset_brik_rotateCW" , fontSize = 20 ,color = ' lG' ,code = selAct (' brik' ,' rotateCW' )},
81
- {type = ' button' , x = 600 ,y = 320 ,w = 200 ,h = 70 ,cornerR = 0 ,text = LANG " keyset_brik_rotateCCW" , fontSize = 20 ,color = ' lG' ,code = selAct (' brik' ,' rotateCCW' )},
82
- {type = ' button' , x = 600 ,y = 400 ,w = 200 ,h = 70 ,cornerR = 0 ,text = LANG " keyset_brik_rotate180" , fontSize = 20 ,color = ' lG' ,code = selAct (' brik' ,' rotate180' )},
83
- {type = ' button' , x = 600 ,y = 480 ,w = 200 ,h = 70 ,cornerR = 0 ,text = LANG " keyset_brik_softDrop" , fontSize = 20 ,color = ' lG' ,code = selAct (' brik' ,' softDrop' )},
84
- {type = ' button' , x = 600 ,y = 560 ,w = 200 ,h = 70 ,cornerR = 0 ,text = LANG " keyset_brik_hardDrop" , fontSize = 20 ,color = ' lG' ,code = selAct (' brik' ,' hardDrop' )},
85
- {type = ' button' , x = 600 ,y = 640 ,w = 200 ,h = 70 ,cornerR = 0 ,text = LANG " keyset_brik_holdPiece" , fontSize = 20 ,color = ' lG' ,code = selAct (' brik' ,' holdPiece' )},
86
- {type = ' button' , x = 600 ,y = 720 ,w = 200 ,h = 70 ,cornerR = 0 ,text = LANG " keyset_sys_restart" , fontSize = 20 ,color = ' lG' ,code = selAct (' sys' , ' restart' )},
87
- {type = ' button' , x = 600 ,y = 800 ,w = 200 ,h = 70 ,cornerR = 0 ,text = LANG " keyset_sys_back" , fontSize = 20 ,color = ' lG' ,code = selAct (' sys' , ' back' )},
88
- {type = ' button' , x = 600 ,y = 880 ,w = 200 ,h = 70 ,cornerR = 0 ,text = LANG " keyset_sys_quit" , fontSize = 20 ,color = ' lG' ,code = selAct (' sys' , ' quit' )},
78
+ {type = ' button' , x = 600 ,y = 80 , w = 200 ,h = 70 ,cornerR = 0 ,text = LANG " keyset_brik_moveLeft" , fontSize = 20 ,color = ' lG' ,onPress = selAct (' brik' ,' moveLeft' )},
79
+ {type = ' button' , x = 600 ,y = 160 ,w = 200 ,h = 70 ,cornerR = 0 ,text = LANG " keyset_brik_moveRight" , fontSize = 20 ,color = ' lG' ,onPress = selAct (' brik' ,' moveRight' )},
80
+ {type = ' button' , x = 600 ,y = 240 ,w = 200 ,h = 70 ,cornerR = 0 ,text = LANG " keyset_brik_rotateCW" , fontSize = 20 ,color = ' lG' ,onPress = selAct (' brik' ,' rotateCW' )},
81
+ {type = ' button' , x = 600 ,y = 320 ,w = 200 ,h = 70 ,cornerR = 0 ,text = LANG " keyset_brik_rotateCCW" , fontSize = 20 ,color = ' lG' ,onPress = selAct (' brik' ,' rotateCCW' )},
82
+ {type = ' button' , x = 600 ,y = 400 ,w = 200 ,h = 70 ,cornerR = 0 ,text = LANG " keyset_brik_rotate180" , fontSize = 20 ,color = ' lG' ,onPress = selAct (' brik' ,' rotate180' )},
83
+ {type = ' button' , x = 600 ,y = 480 ,w = 200 ,h = 70 ,cornerR = 0 ,text = LANG " keyset_brik_softDrop" , fontSize = 20 ,color = ' lG' ,onPress = selAct (' brik' ,' softDrop' )},
84
+ {type = ' button' , x = 600 ,y = 560 ,w = 200 ,h = 70 ,cornerR = 0 ,text = LANG " keyset_brik_hardDrop" , fontSize = 20 ,color = ' lG' ,onPress = selAct (' brik' ,' hardDrop' )},
85
+ {type = ' button' , x = 600 ,y = 640 ,w = 200 ,h = 70 ,cornerR = 0 ,text = LANG " keyset_brik_holdPiece" , fontSize = 20 ,color = ' lG' ,onPress = selAct (' brik' ,' holdPiece' )},
86
+ {type = ' button' , x = 600 ,y = 720 ,w = 200 ,h = 70 ,cornerR = 0 ,text = LANG " keyset_sys_restart" , fontSize = 20 ,color = ' lG' ,onPress = selAct (' sys' , ' restart' )},
87
+ {type = ' button' , x = 600 ,y = 800 ,w = 200 ,h = 70 ,cornerR = 0 ,text = LANG " keyset_sys_back" , fontSize = 20 ,color = ' lG' ,onPress = selAct (' sys' , ' back' )},
88
+ {type = ' button' , x = 600 ,y = 880 ,w = 200 ,h = 70 ,cornerR = 0 ,text = LANG " keyset_sys_quit" , fontSize = 20 ,color = ' lG' ,onPress = selAct (' sys' , ' quit' )},
89
89
90
- {type = ' button' ,pos = {1 ,1 },x =- 300 ,y =- 80 ,w = 160 ,h = 80 ,cornerR = 0 ,text = LANG " setting_test" ,fontSize = 40 ,code = PlayInterior ' brik/interior/test' ,visibleFunc = function () return not GAME .mode end },
91
- {type = ' button' ,pos = {1 ,1 },x =- 120 ,y =- 80 ,w = 160 ,h = 80 ,sound_trigger = ' button_back' ,cornerR = 0 ,fontSize = 60 ,text = CHAR .icon .back ,code = WIDGET .c_backScn (' none' )},
90
+ {type = ' button' ,pos = {1 ,1 },x =- 300 ,y =- 80 ,w = 160 ,h = 80 ,cornerR = 0 ,text = LANG " setting_test" ,fontSize = 40 ,onPress = PlayInterior ' brik/interior/test' ,visibleFunc = function () return not GAME .mode end },
91
+ {type = ' button' ,pos = {1 ,1 },x =- 120 ,y =- 80 ,w = 160 ,h = 80 ,sound_trigger = ' button_back' ,cornerR = 0 ,fontSize = 60 ,text = CHAR .icon .back ,onPress = WIDGET .c_backScn (' none' )},
92
92
}
93
93
return scene
0 commit comments