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:
Imple Lee
2023-05-03 00:27:54 +08:00
committed by GitHub
parent 7dd73ef8d3
commit fe29cc532d
15 changed files with 15 additions and 19 deletions

View File

@@ -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},