summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s/Misc.c4d
diff options
context:
space:
mode:
Diffstat (limited to 'TemplePushing.c4s/Misc.c4d')
-rw-r--r--TemplePushing.c4s/Misc.c4d/SetupMenu.c4d/Script.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/TemplePushing.c4s/Misc.c4d/SetupMenu.c4d/Script.c b/TemplePushing.c4s/Misc.c4d/SetupMenu.c4d/Script.c
index ea902f8..11c2587 100644
--- a/TemplePushing.c4s/Misc.c4d/SetupMenu.c4d/Script.c
+++ b/TemplePushing.c4s/Misc.c4d/SetupMenu.c4d/Script.c
@@ -18,6 +18,16 @@ local ambienceEnabled;
local numRelaunches;
local deathmatchEnabled, deathmatchWinScore;
+public func GetModes()
+{
+ return
+ [[MODE_Classic, "$ModeClassic$", CLSC],
+ [MODE_Magic, "$ModeMagic$", MLPG],
+ [MODE_Festive, "$ModeFestive$", FSTV],
+ [MODE_Apocalyptic, "$ModeApocalyptic$", APCE],
+ [MODE_Knightly, "$ModeKnightly$", MKNI]];
+}
+
protected func Initialize()
{
Sections = [];
@@ -27,12 +37,7 @@ protected func Initialize()
}
section = Sections[0];
- Modes = [
- [MODE_Classic, "$ModeClassic$", CLSC],
- [MODE_Magic, "$ModeMagic$", MLPG],
- [MODE_Knightly, "$ModeKnightly$", MKNI],
- [MODE_Apocalyptic, "$ModeApocalyptic$", APCE],
- [MODE_Festive, "$ModeFestive$", FSTV]];
+ Modes = GetModes();
}
private func ShowSetup()