From d784c33fe8b0123dc3311e83b7460b7bd79dd87e Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sun, 6 Jun 2021 11:30:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=80=E4=B8=AA=E8=8A=82?= =?UTF-8?q?=E6=97=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/theme.lua | 7 +++++++ parts/scenes/app_console.lua | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Zframework/theme.lua b/Zframework/theme.lua index 0e2e9fb3..27edf2cc 100644 --- a/Zframework/theme.lua +++ b/Zframework/theme.lua @@ -14,6 +14,10 @@ function THEME.calculate(Y,M,D) M=="12"and math.abs(D-25)<4 and 'xmas'or + --Birthday + M=="06"and D=="06"and + 'birth'or + --Spring festival M<"03"and math.abs((({ --Festival days. Jan 26=26, Feb 1=32, etc. @@ -51,6 +55,9 @@ function THEME.set(theme) LOG.print("==============") LOG.print("Merry Christmas!") LOG.print("==============") + elseif theme=='birth'then + BG.setDefault('firework') + BGM.setDefault('magicblock') elseif theme=='sprfes'then BG.setDefault('firework') BGM.setDefault("spring festival") diff --git a/parts/scenes/app_console.lua b/parts/scenes/app_console.lua index 39080790..ce6ca140 100644 --- a/parts/scenes/app_console.lua +++ b/parts/scenes/app_console.lua @@ -225,7 +225,7 @@ do--commands.help(arg) details={ "Load a theme.", "", - "Usage: theme ", + "Usage: theme ", }, }, test={