圣诞节彩蛋
This commit is contained in:
@@ -822,6 +822,13 @@ function WIDGET.set(list)
|
|||||||
list[i]:reset()
|
list[i]:reset()
|
||||||
end
|
end
|
||||||
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
|
end
|
||||||
function WIDGET.setLang(widgetText)
|
function WIDGET.setLang(widgetText)
|
||||||
for S,L in next,SCN.scenes do
|
for S,L in next,SCN.scenes do
|
||||||
|
|||||||
4
main.lua
4
main.lua
@@ -25,6 +25,8 @@ NOGAME=false
|
|||||||
LOGIN=false
|
LOGIN=false
|
||||||
EDITING=""
|
EDITING=""
|
||||||
WSCONN=false
|
WSCONN=false
|
||||||
|
FESTIVAL=
|
||||||
|
os.date"%m"=="12"and math.abs(os.date"%d"-25)<2 and"Xmas"
|
||||||
|
|
||||||
math.randomseed(os.time()*626)
|
math.randomseed(os.time()*626)
|
||||||
love.keyboard.setKeyRepeat(true)
|
love.keyboard.setKeyRepeat(true)
|
||||||
@@ -365,7 +367,7 @@ do
|
|||||||
if S.version<1208 then
|
if S.version<1208 then
|
||||||
SETTING.skinSet=1
|
SETTING.skinSet=1
|
||||||
end
|
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}
|
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
|
end
|
||||||
newVersionLaunch=true
|
newVersionLaunch=true
|
||||||
|
|||||||
@@ -209,6 +209,11 @@ function scene.update()
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
if FESTIVAL=="Xmas"then
|
||||||
|
LOG.print("==============",COLOR.red)
|
||||||
|
LOG.print("Merry Christmas!",COLOR.white)
|
||||||
|
LOG.print("==============",COLOR.red)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
if loadTar then
|
if loadTar then
|
||||||
loadCur=loadCur+1
|
loadCur=loadCur+1
|
||||||
|
|||||||
Reference in New Issue
Block a user