Added CATEGORY_EMC to config
This commit is contained in:
parent
d1196d0a7c
commit
aa76eeb6b0
2 changed files with 30 additions and 0 deletions
|
@ -11,6 +11,7 @@ public class ConfigTechReborn {
|
|||
public static String CATEGORY_POWER = "power";
|
||||
public static String CATEGORY_CRAFTING = "crafting";
|
||||
public static String CATEGORY_UU = "uu";
|
||||
public static String CATEGORY_EMC = "emc";
|
||||
|
||||
// WORLDGEN
|
||||
public static boolean GalenaOreTrue;
|
||||
|
@ -140,6 +141,8 @@ public class ConfigTechReborn {
|
|||
public static boolean UUrecipesTitaniumDust;
|
||||
public static boolean UUrecipesAluminumDust;
|
||||
|
||||
//EMC
|
||||
|
||||
// Client
|
||||
public static boolean ShowChargeHud;
|
||||
|
||||
|
|
|
@ -38,6 +38,9 @@ public class TechRebornConfigGui extends GuiConfig {
|
|||
list.add(new DummyConfigElement.DummyCategoryElement(StatCollector
|
||||
.translateToLocal("config.techreborn.category.uu"),
|
||||
"tr.configgui.category.truu", TRUU.class));
|
||||
list.add(new DummyConfigElement.DummyCategoryElement(StatCollector
|
||||
.translateToLocal("config.techreborn.category.emc"),
|
||||
"tr.configgui.category.tremc", TREMC.class));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
@ -166,4 +169,28 @@ public class TechRebornConfigGui extends GuiConfig {
|
|||
.toString()));
|
||||
}
|
||||
}
|
||||
|
||||
// Emc
|
||||
public static class TREMC extends CategoryEntry {
|
||||
public TREMC(GuiConfig owningScreen, GuiConfigEntries owningEntryList, IConfigElement configElement)
|
||||
{
|
||||
super(owningScreen, owningEntryList, configElement);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected GuiScreen buildChildScreen()
|
||||
{
|
||||
return new GuiConfig(this.owningScreen,
|
||||
(new ConfigElement(ConfigTechReborn.config
|
||||
.getCategory(ConfigTechReborn.CATEGORY_EMC)))
|
||||
.getChildElements(), this.owningScreen.modID,
|
||||
Configuration.CATEGORY_GENERAL,
|
||||
this.configElement.requiresWorldRestart()
|
||||
|| this.owningScreen.allRequireWorldRestart,
|
||||
this.configElement.requiresMcRestart()
|
||||
|| this.owningScreen.allRequireMcRestart,
|
||||
GuiConfig.getAbridgedConfigPath(ConfigTechReborn.config
|
||||
.toString()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue