From 50fbecf5556cdf75b6f00cb3db59899f28fd3e6b Mon Sep 17 00:00:00 2001 From: Matthew Date: Sat, 22 Dec 2018 03:34:51 -0500 Subject: [PATCH] Add config option for info (#572) --- config.lua | 2 ++ control.lua | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config.lua b/config.lua index cd1773bf..301f4b66 100644 --- a/config.lua +++ b/config.lua @@ -3,7 +3,9 @@ _CHEATS = false local market_item = 'coin' global.config = { + -- adds a GUI listing the scenario features, the rules, and the details of the current map map_info = { + enabled = true, -- The title of the map map_name_key = 'This Map has no name', -- The long description of the map, typically 1 paragraph diff --git a/control.lua b/control.lua index 99c7e155..11c9883e 100644 --- a/control.lua +++ b/control.lua @@ -63,7 +63,9 @@ end -- GUIs the order determines the order they appear from left to right. -- These can be safely disabled if you want less GUI items. -- Some map presets will add GUI modules themselves. -require 'features.gui.info' +if config.map_info.enabled then + require 'features.gui.info' +end if config.player_list.enabled then require 'features.gui.player_list' end