1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-03-11 14:49:59 +02:00

Add config option for info (#572)

This commit is contained in:
Matthew 2018-12-22 03:34:51 -05:00 committed by Valansch
parent 86e40584ab
commit 50fbecf555
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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