From fd7574e7fd967450a0600cdd37c416eadb5a40a7 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 4 Jan 2021 18:52:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8A=82=E6=97=A5=E4=B8=BB=E9=A2=98=E9=A2=9C?= =?UTF-8?q?=E8=89=B2=E6=9B=B4=E5=A5=BD=E6=89=A9=E5=B1=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/widget.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Zframework/widget.lua b/Zframework/widget.lua index e6e3c253..eaf62a37 100644 --- a/Zframework/widget.lua +++ b/Zframework/widget.lua @@ -825,10 +825,14 @@ function WIDGET.set(list) list[i]:reset() end end - if FESTIVAL=="Xmas"and SCN.cur~="custom_field"then + if FESTIVAL and SCN.cur~="custom_field"then + local c1,c2,c3 + if FESTIVAL=="Xmas"then + c1,c2,c3=COLOR.red,COLOR.white,COLOR.green + end for _,W in next,list do if W.color then - W.color=math.random()<.5 and COLOR.red or COLOR.white + W.color=math.random()<.3 and c1 or math.random()<.5 and c2 or c3 end end end