修改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={ local cmds={
move="translate", move="translate",
zoom="scale", zoom="scale",
setc="setColor", rgba="setColor",
lwid="setLineWidth", lwid="setLineWidth",
draw="draw", draw="draw",
line="line", 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,05,10,20},{"rect","line",49,05,10,20},
{"rect","line",05,39,10,20},{"rect","line",49,39,10,20}, {"rect","line",05,39,10,20},{"rect","line",49,39,10,20},
{"rect","line",20,10,23,43}, {"rect","line",20,10,23,43},
{"setc",1,1,1,.7}, {"rgba",1,1,1,.7},
{"rect","fill",20,10,23,43}, {"rect","fill",20,10,23,43},
}YIELD() }YIELD()
modeIcons.t99=DOGC{64,64, 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,34,6,12},{"rect","line",56,34,6,12},
{"rect","line",47,50,6,12},{"rect","line",56,50,6,12}, {"rect","line",47,50,6,12},{"rect","line",56,50,6,12},
{"rect","line",20,10,23,43}, {"rect","line",20,10,23,43},
{"setc",1,1,1,.7}, {"rgba",1,1,1,.7},
{"rect","fill",20,10,23,43}, {"rect","fill",20,10,23,43},
}YIELD() }YIELD()

View File

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

View File

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