添加halloween主题,包括一个bgm,一个按钮主题,主菜单打雷特效,带蜘蛛网的标题和一个南瓜

close #757
This commit is contained in:
MrZ_26
2022-10-26 04:42:00 +08:00
parent b436645ab7
commit 97d4e58d47
13 changed files with 82 additions and 9 deletions

View File

@@ -4,6 +4,7 @@ local THEME={
local themeColor={
xmas={COLOR.lR,COLOR.Z,COLOR.lG},
sprfes={COLOR.lR,COLOR.O,COLOR.lY},
halloween={COLOR.lH,COLOR.O,{COLOR.hsv(0.76, 0.50, 0.42)},{COLOR.hsv(0.33, 0.80, 0.42)}},
}
function THEME.calculate(Y,M,D)
@@ -16,6 +17,10 @@ function THEME.calculate(Y,M,D)
M=='12' and math.abs(D-25)<4 and
'xmas' or
-- Halloween
(M=='11' and D>='28' or M=='12' and D<='04') and
'halloween' or
-- Birthday
M=='06' and D=='06' and
'birth' or
@@ -65,6 +70,10 @@ function THEME.set(theme)
BG.setDefault('firework')
BGM.setDefault('spring festival')
MES.new('info',"★☆新年快乐☆★")
elseif theme=='halloween' then
BG.setDefault('glow')
BGM.setDefault('antispace')
MES.new('info',">>Happy halloween<<")
elseif theme=='zday1' then
BG.setDefault('lanterns')
BGM.setDefault('overzero')
@@ -105,8 +114,4 @@ function THEME.getThemeColor(theme)
return themeColor[theme]
end
function THEME.fresh()
THEME.set(THEME.calculate(os.date('%Y'),os.date('%m'),os.date('%d')))
end
return THEME