diff --git a/config.lua b/config.lua index d3d9ba00..9c2406b3 100644 --- a/config.lua +++ b/config.lua @@ -20,3 +20,12 @@ global.scenario.custom_functions = {} global.scenario.config.nuke_control.nuke_min_time_hours = 3 --how long a player must be on the server to be allowed to use the nuke global.newline = '\n' newline = '\n' + +-- The title of the map +global.scenario.config.map_name_key = 'This Map has no name' +-- The long description of the map, typically 1 paragraph +global.scenario.config.map_description_key = "By default this section is blank as it's supposed to be filled out on a per map basis. (If you're seeing this message, ping the admin team to get a description added for this map)" +-- The feature list of the map +global.scenario.config.map_extra_info_key = 'This map has no extra infomation' +-- New Scenario Features, appears in the "What's new" tab +global.scenario.config.new_info_key = 'Nothing is new. The world is at peace' diff --git a/features/gui/info.lua b/features/gui/info.lua index 4723c207..e9245c9c 100644 --- a/features/gui/info.lua +++ b/features/gui/info.lua @@ -19,11 +19,12 @@ local map_extra_info_key = 3 local new_info_key = 4 local welcomed_players = {} + local editable_info = { - [map_name_key] = 'This Map has no name', - [map_description_key] = "By default this section is blank as it's supposed to be filled out on a per map basis. (If you're seeing this message, ping the admin team to get a description added for this map)", - [map_extra_info_key] = 'This map has no extra infomation', - [new_info_key] = 'Nothing is new. The world is at peace' + [map_name_key] = global.scenario.config.map_name_key, + [map_description_key] = global.scenario.config.map_description_key, + [map_extra_info_key] = global.scenario.config.map_extra_info_key, + [new_info_key] = global.scenario.config.new_info_key } Global.register(