From 736efdaf6aea46dc44322e84656a7a489face44a Mon Sep 17 00:00:00 2001 From: Mittendrein Markus Date: Wed, 26 Aug 2015 22:47:46 +0200 Subject: Add GameComments to show current game state --- TemplePushing.c4s/Misc.c4d/SetupMenu.c4d/Script.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'TemplePushing.c4s/Misc.c4d/SetupMenu.c4d/Script.c') 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() -- cgit v1.2.3-54-g00ecf