整理代码,微调节日主题变色逻辑

This commit is contained in:
MrZ626
2021-02-10 19:21:05 +08:00
parent fbd435a018
commit d2a524b26e
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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