整理代码,微调节日主题变色逻辑
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user