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

@@ -6,6 +6,6 @@ return {
PLY.draw.applyField(P)
GC.setColor(1,1,1,.1)
GC.draw(IMG.electric,0,106,0,2.6)
PLY.draw.cancelField(P)
PLY.draw.cancelField()
end,
}

View File

@@ -64,7 +64,7 @@ return {
end
end end
end
PLY.draw.cancelField(P)
PLY.draw.cancelField()
end,
task=function(P)
P.modeData.rankPts=1

View File

@@ -9,7 +9,7 @@ return {
GC.setColor(1,.3,.3,.5-i*.04)
GC.rectangle('fill',30*L[i]-30,0,30,600)
end
PLY.draw.cancelField(P)
PLY.draw.cancelField()
end,
hook_drop=function(P)
local C=P.lastPiece

View File

@@ -8,7 +8,7 @@ return {
PLY.draw.applyField(P)
GC.setColor(1,.3,.3,.2)
GC.rectangle('fill',30*L[1]-30,0,30,600)
PLY.draw.cancelField(P)
PLY.draw.cancelField()
end
end,
hook_drop=function(P)

View File

@@ -9,7 +9,7 @@ return {
GC.setColor(1,.3,.3,.4-i*.05)
GC.rectangle('fill',30*L[i]-30,0,30,600)
end
PLY.draw.cancelField(P)
PLY.draw.cancelField()
end,
hook_drop=function(P)
local C=P.lastPiece