fix many warnings (#889)
* fix many warnings some of them can be solved by using a prototype-based system maybe I can try to use some of these systems to reform backgrounds... * Update app_mahjong.lua --------- Co-authored-by: MrZ_26 <1046101471@qq.com>
This commit is contained in:
@@ -124,9 +124,9 @@ end
|
||||
function scene.mouseDown()
|
||||
_throwCard()
|
||||
end
|
||||
function scene.touchMove(x,y) scene.mouseMove(x,y) end
|
||||
function scene.touchDown(x,y) scene.mouseMove(x,y) end
|
||||
function scene.touchClick(x,y) scene.mouseDown(x,y) end
|
||||
scene.touchMove=scene.mouseMove
|
||||
scene.touchDown=scene.mouseMove
|
||||
scene.touchClick=scene.mouseDown
|
||||
function scene.keyDown(key)
|
||||
if key=='left' then
|
||||
if selected then
|
||||
|
||||
@@ -118,12 +118,12 @@ scene.widgetList={
|
||||
WIDGET.newSelector{name='blockSatur', x=800,y=1440,w=300,color='lN',
|
||||
list={'normal','soft','gray','light','color'},
|
||||
disp=SETval('blockSatur'),
|
||||
code=function(v) SETTING.blockSatur=v; applySettings(SETTING.blockSatur) end
|
||||
code=function(v) SETTING.blockSatur=v; applySettings() end
|
||||
},
|
||||
WIDGET.newSelector{name='fieldSatur', x=800,y=1540,w=300,color='lN',
|
||||
list={'normal','soft','gray','light','color'},
|
||||
disp=SETval('fieldSatur'),
|
||||
code=function(v) SETTING.fieldSatur=v; applySettings(SETTING.fieldSatur) end
|
||||
code=function(v) SETTING.fieldSatur=v; applySettings() end
|
||||
},
|
||||
|
||||
WIDGET.newButton{name='back', x=1140,y=640,w=170,h=80,sound='back',font=60,fText=CHAR.icon.back,code=backScene},
|
||||
|
||||
Reference in New Issue
Block a user