From d2a524b26e0764210e68169685c38c96b6f69cb1 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Wed, 10 Feb 2021 19:21:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81=EF=BC=8C?= =?UTF-8?q?=E5=BE=AE=E8=B0=83=E8=8A=82=E6=97=A5=E4=B8=BB=E9=A2=98=E5=8F=98?= =?UTF-8?q?=E8=89=B2=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/init.lua | 2 +- Zframework/widget.lua | 2 +- parts/player/draw.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Zframework/init.lua b/Zframework/init.lua index da72e5bb..823ebd61 100644 --- a/Zframework/init.lua +++ b/Zframework/init.lua @@ -419,7 +419,7 @@ function love.run() local SCN=SCN local SETTING=SETTING - local TIME=love.timer.getTime + local TIME=TIME local STEP,WAIT=love.timer.step,love.timer.sleep local MINI=love.window.isMinimized local PUMP,POLL=love.event.pump,love.event.poll diff --git a/Zframework/widget.lua b/Zframework/widget.lua index 2d0aabde..4b26be05 100644 --- a/Zframework/widget.lua +++ b/Zframework/widget.lua @@ -984,7 +984,7 @@ function WIDGET.set(list) end local rnd=math.random for _,W in next,list do - if W.color then + if W.color and not W.fText then W.color=rnd()<.3 and c1 or rnd()<.5 and c2 or c3 end end diff --git a/parts/player/draw.lua b/parts/player/draw.lua index 05744826..ba3063b7 100644 --- a/parts/player/draw.lua +++ b/parts/player/draw.lua @@ -2,7 +2,7 @@ local gc=love.graphics local gc_push,gc_pop,gc_scale,gc_translate=gc.push,gc.pop,gc.scale,gc.translate local gc_draw,gc_print,gc_line,gc_rectangle,gc_circle=gc.draw,gc.print,gc.line,gc.rectangle,gc.circle local gc_setColor,gc_setLineWidth=gc.setColor,gc.setLineWidth -local TIME=love.timer.getTime +local TIME=TIME local int,ceil,rnd=math.floor,math.ceil,math.random local max,min,sin=math.max,math.min,math.sin local SCR=SCR