圣诞节彩蛋

This commit is contained in:
MrZ626
2020-12-25 18:05:12 +08:00
parent 5a355a1d11
commit c7bd0e0e03
3 changed files with 15 additions and 1 deletions

View File

@@ -822,6 +822,13 @@ function WIDGET.set(list)
list[i]:reset()
end
end
if FESTIVAL=="Xmas"and SCN.cur~="custom_field"then
for _,W in next,list do
if W.color then
W.color=math.random()<.5 and COLOR.red or COLOR.white
end
end
end
end
function WIDGET.setLang(widgetText)
for S,L in next,SCN.scenes do

View File

@@ -25,6 +25,8 @@ NOGAME=false
LOGIN=false
EDITING=""
WSCONN=false
FESTIVAL=
os.date"%m"=="12"and math.abs(os.date"%d"-25)<2 and"Xmas"
math.randomseed(os.time()*626)
love.keyboard.setKeyRepeat(true)
@@ -365,7 +367,7 @@ do
if S.version<1208 then
SETTING.skinSet=1
end
if S.version<1210 then
if S.version<1225 then
SETTING.skin={1,7,11,3,14,4,9,1,7,2,6,10,2,13,5,9,15,10,11,3,12,2,16,8,4,10,13,2,8}
end
newVersionLaunch=true

View File

@@ -209,6 +209,11 @@ function scene.update()
}
)
end
if FESTIVAL=="Xmas"then
LOG.print("==============",COLOR.red)
LOG.print("Merry Christmas!",COLOR.white)
LOG.print("==============",COLOR.red)
end
end
if loadTar then
loadCur=loadCur+1