修改DOGC模块setc的命令名

This commit is contained in:
MrZ626
2021-04-18 14:20:53 +08:00
parent 91c240c463
commit b723469b43
4 changed files with 6 additions and 6 deletions

View File

@@ -2,7 +2,7 @@ local gc=love.graphics
local cmds={
move="translate",
zoom="scale",
setc="setColor",
rgba="setColor",
lwid="setLineWidth",
draw="draw",
line="line",

View File

@@ -103,7 +103,7 @@ local loadingThread=coroutine.wrap(function()
{"rect","line",05,05,10,20},{"rect","line",49,05,10,20},
{"rect","line",05,39,10,20},{"rect","line",49,39,10,20},
{"rect","line",20,10,23,43},
{"setc",1,1,1,.7},
{"rgba",1,1,1,.7},
{"rect","fill",20,10,23,43},
}YIELD()
modeIcons.t99=DOGC{64,64,
@@ -117,7 +117,7 @@ local loadingThread=coroutine.wrap(function()
{"rect","line",47,34,6,12},{"rect","line",56,34,6,12},
{"rect","line",47,50,6,12},{"rect","line",56,50,6,12},
{"rect","line",20,10,23,43},
{"setc",1,1,1,.7},
{"rgba",1,1,1,.7},
{"rect","fill",20,10,23,43},
}YIELD()

View File

@@ -47,7 +47,7 @@ for i=18,24 do
gc.rectangle("line",7,7,16,16)
end
TEXTURE.puzzleMark[-1]=DOGC{30,30,
{"setc",1,1,1,.8},
{"rgba",1,1,1,.8},
{"draw",DOGC{30,30,
{"lwid",3},
{"line",5,5,25,25},

View File

@@ -2,9 +2,9 @@ local loadImage=love.graphics.newImage
local fs=love.filesystem
local texture_noImage=DOGC{32,32,
{"setc",0,0,0},
{"rgba",0,0,0},
{"rect","fill",0,0,32,32},
{"setc",1,1,1},
{"rgba",1,1,1},
{"lwid",3},
{"line",0,0,31,31},
{"line",0,31,31,0},