From f12e4128e6ff29911e5a2259867a587d79331154 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 19 Apr 2021 15:13:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=8D=E5=8D=87=E7=BA=A7doGC=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=EF=BC=8C=E7=BB=8F=E5=85=B8=E6=A8=A1=E5=BC=8F=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E4=BD=BF=E7=94=A8doGC=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/doGC.lua | 9 ++++++++- media/image/modeicon/classic.png | Bin 183 -> 0 bytes parts/scenes/load.lua | 21 ++++++++++++++------- 3 files changed, 22 insertions(+), 8 deletions(-) delete mode 100644 media/image/modeicon/classic.png diff --git a/Zframework/doGC.lua b/Zframework/doGC.lua index c0e42bfe..48193c2e 100644 --- a/Zframework/doGC.lua +++ b/Zframework/doGC.lua @@ -1,16 +1,23 @@ local gc=love.graphics local cmds={ + reset="origin", trans="translate", scale="scale", + rotat="rotate", + setCL="setColor", + setCM="setColorMask", setLW="setLineWidth", + setLS="setLineStyle", + setLJ="setLineJoin", + draw="draw", dLine="line", fRect=function(...)gc.rectangle("fill",...)end, dRect=function(...)gc.rectangle("line",...)end, fCirc=function(...)gc.circle("fill",...)end, dCirc=function(...)gc.circle("line",...)end, - fPoly=function(...)gc.polygon("line",...)end, + fPoly=function(...)gc.polygon("fill",...)end, dPoly=function(...)gc.polygon("line",...)end, } return function(L) diff --git a/media/image/modeicon/classic.png b/media/image/modeicon/classic.png deleted file mode 100644 index e8c92191b8bee4f12b382d4068ba7c82bb05d4ef..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 183 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA1|-9oezpTC&H|6fVg?3oArNM~bhqvgP%zWe z#W5t~-rH-Ad<_abEDi?${-6HJEX2Gl>hYOSzMLCeYZ)2-gv-}gTe~DWM4f(YZa% diff --git a/parts/scenes/load.lua b/parts/scenes/load.lua index 8803ede0..5b9372e2 100644 --- a/parts/scenes/load.lua +++ b/parts/scenes/load.lua @@ -80,13 +80,6 @@ local loadingThread=coroutine.wrap(function() {"fPoly",10,4,24,10,10,16.5}, {"fRect",4,24,10,3}, }YIELD() - modeIcons.tsd=DOGC{64,64, - {"fRect",7,7,16,16}, - {"fRect",7,41,16,16}, - {"fRect",41,41,16,16}, - {"trans",.5,.5}, - {"dPoly",7,24,56,24,56,39,39,39,39,56,24,56,24,39,7,39}, - }YIELD() modeIcons.infinite=DOGC{64,64, {"setLW",4}, {"dCirc",32,32,28}, @@ -98,6 +91,20 @@ local loadingThread=coroutine.wrap(function() {"fRect",52,30,4,4}, {"fRect",30,52,4,4}, }YIELD() + modeIcons.classic=DOGC{64,64, + {"setLW",6}, + {"dRect",10,24,12,12}, + {"dRect",26,24,12,12}, + {"dRect",42,24,12,12}, + {"dRect",26,40,12,12}, + }YIELD() + modeIcons.tsd=DOGC{64,64, + {"fRect",7,7,16,16}, + {"fRect",7,41,16,16}, + {"fRect",41,41,16,16}, + {"trans",.5,.5}, + {"fPoly",7,24,56,24,56,39,39,39,39,56,24,56,24,39,7,39}, + }YIELD() modeIcons.t49=DOGC{64,64, {"setLW",2}, {"dRect",05,05,10,20},{"dRect",49,05,10,20},