From c40d541837b9d1943690728b1158185df6748103 Mon Sep 17 00:00:00 2001 From: TehNut Date: Thu, 2 Oct 2014 23:08:36 -0700 Subject: [PATCH] Config stuff -Category comment -Add to ConfigGui --- .../java/tombenpotter/emt/client/gui/config/EMTGuiConfig.java | 1 + src/main/java/tombenpotter/emt/common/util/ConfigHandler.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/main/java/tombenpotter/emt/client/gui/config/EMTGuiConfig.java b/src/main/java/tombenpotter/emt/client/gui/config/EMTGuiConfig.java index 5b8d439..f8ba870 100644 --- a/src/main/java/tombenpotter/emt/client/gui/config/EMTGuiConfig.java +++ b/src/main/java/tombenpotter/emt/client/gui/config/EMTGuiConfig.java @@ -27,6 +27,7 @@ public class EMTGuiConfig extends GuiConfig { list.add(new ConfigElement(config.getCategory(CATEGORY_VALUES.toLowerCase()))); list.add(new ConfigElement(config.getCategory(CATEGORY_RESEARCH.toLowerCase()))); list.add(new ConfigElement(config.getCategory(CATEGORY_OUTPUTS.toLowerCase()))); + list.add(new ConfigElement(config.getCategory(CATEGORY_MODULES.toLowerCase()))); return list; } diff --git a/src/main/java/tombenpotter/emt/common/util/ConfigHandler.java b/src/main/java/tombenpotter/emt/common/util/ConfigHandler.java index 2f30c50..3d7a4c5 100644 --- a/src/main/java/tombenpotter/emt/common/util/ConfigHandler.java +++ b/src/main/java/tombenpotter/emt/common/util/ConfigHandler.java @@ -117,6 +117,8 @@ public class ConfigHandler { config.addCustomCategoryComment(CATEGORY_VALUES, "The only way to change some numbers that my machines uses."); config.addCustomCategoryComment(CATEGORY_RESEARCH, "The only way to disable some researches. " + "Be careful, if you disable some researches, " + "all researches linked to it will be removed too. " + "Really, don't touch that unless you know exactly what you are doing."); config.addCustomCategoryComment(CATEGORY_OUTPUTS, "Change outputs linked to different Essentias here"); + config.addCustomCategoryComment(CATEGORY_RANDOM, "Options that don't fit into the other categories."); + config.addCustomCategoryComment(CATEGORY_MODULES, "Currently does nothing. Here for dev purposes."); capesOn = config.get(CATEGORY_RANDOM, "Enable capes", true, "This config option is to enable or disable capes for people who have them. " + "Seriously, you shouldn't touch that unless you have another cape and " + "it conflicts with it.").getBoolean(capesOn); toolsInBore = config.get(CATEGORY_RANDOM, "Tools for Arcane Bore", false, "This will augment the durablilty of the tools, and will also decrease the EU cost to 1. " + "The tools should have the same number of uses than before.").getBoolean(toolsInBore);