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:
parent
86e40584ab
commit
50fbecf555
@ -3,7 +3,9 @@ _CHEATS = false
|
|||||||
local market_item = 'coin'
|
local market_item = 'coin'
|
||||||
|
|
||||||
global.config = {
|
global.config = {
|
||||||
|
-- adds a GUI listing the scenario features, the rules, and the details of the current map
|
||||||
map_info = {
|
map_info = {
|
||||||
|
enabled = true,
|
||||||
-- The title of the map
|
-- The title of the map
|
||||||
map_name_key = 'This Map has no name',
|
map_name_key = 'This Map has no name',
|
||||||
-- The long description of the map, typically 1 paragraph
|
-- The long description of the map, typically 1 paragraph
|
||||||
|
@ -63,7 +63,9 @@ end
|
|||||||
-- GUIs the order determines the order they appear from left to right.
|
-- GUIs the order determines the order they appear from left to right.
|
||||||
-- These can be safely disabled if you want less GUI items.
|
-- These can be safely disabled if you want less GUI items.
|
||||||
-- Some map presets will add GUI modules themselves.
|
-- 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
|
if config.player_list.enabled then
|
||||||
require 'features.gui.player_list'
|
require 'features.gui.player_list'
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user