新BGM:vacuum(用于节日主题),zday拆分为zday1和zday2
This commit is contained in:
@@ -31,9 +31,13 @@ function THEME.calculate(Y,M,D)
|
|||||||
M=="04"and D=="01"and
|
M=="04"and D=="01"and
|
||||||
"fool"or
|
"fool"or
|
||||||
|
|
||||||
--Z day (Feb./Mar./Apr./May./June 26)
|
--Z day (1) (Feb./Mar./Apr. 26)
|
||||||
math.abs(M-4)<=2 and D+0==26 and
|
math.abs(M-3)<=1 and D=="26"and
|
||||||
"zday"or
|
"zday1"or
|
||||||
|
|
||||||
|
--Z day (2) (May./June 26)
|
||||||
|
math.abs(M-5.5)<=1 and D=="26"and
|
||||||
|
"zday2"or
|
||||||
|
|
||||||
"classic"
|
"classic"
|
||||||
end
|
end
|
||||||
@@ -54,9 +58,12 @@ function THEME.set(theme)
|
|||||||
LOG.print(" ★☆☆★",COLOR.red)
|
LOG.print(" ★☆☆★",COLOR.red)
|
||||||
LOG.print("新年快乐!",COLOR.white)
|
LOG.print("新年快乐!",COLOR.white)
|
||||||
LOG.print(" ★☆☆★",COLOR.red)
|
LOG.print(" ★☆☆★",COLOR.red)
|
||||||
elseif theme=="zday"then
|
elseif theme=="zday1"then
|
||||||
BG.setDefault("lanterns")
|
BG.setDefault("lanterns")
|
||||||
BGM.setDefault("overzero")
|
BGM.setDefault("overzero")
|
||||||
|
elseif theme=="zday2"then
|
||||||
|
BG.setDefault("lanterns")
|
||||||
|
BGM.setDefault("vacuum")
|
||||||
elseif theme=="fool"then
|
elseif theme=="fool"then
|
||||||
BG.setDefault("blockrain")
|
BG.setDefault("blockrain")
|
||||||
BGM.setDefault("how feeling")
|
BGM.setDefault("how feeling")
|
||||||
|
|||||||
BIN
media/BGM/vacuum.ogg
Normal file
BIN
media/BGM/vacuum.ogg
Normal file
Binary file not shown.
@@ -196,7 +196,7 @@ do--commands.help(arg)
|
|||||||
details={
|
details={
|
||||||
"Set background.",
|
"Set background.",
|
||||||
"",
|
"",
|
||||||
"Usage: setbg <classic|xmas|sprfes|zday>",
|
"Usage: setbg <classic|xmas|sprfes|zday1|zday2>",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
theme={
|
theme={
|
||||||
@@ -204,7 +204,7 @@ do--commands.help(arg)
|
|||||||
details={
|
details={
|
||||||
"Load a theme.",
|
"Load a theme.",
|
||||||
"",
|
"",
|
||||||
"Usage: theme <classic|xmas|sprfes|zday>",
|
"Usage: theme <classic|xmas|sprfes|zday1|zday2>",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
demo={
|
demo={
|
||||||
|
|||||||
Reference in New Issue
Block a user