mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
add energy storage settings category to config gui. closes #5465
This commit is contained in:
1 parent
31b06c0ab0
commit
91ef2a5c3d
3 files changed
+21
No files matched your search
@@ -32,6 +32,8 @@ public class GuiMekanismConfig extends GuiConfig {
|
||||
"mekanism.configgui.ctgy.tier", TierEntry.class));
|
||||
list.add(new DummyCategoryElement(LangUtils.localize("mekanism.configgui.ctgy.usage"),
|
||||
"mekanism.configgui.ctgy.usage", UsageEntry.class));
|
||||
list.add(new DummyCategoryElement(LangUtils.localize("mekanism.configgui.ctgy.storage"),
|
||||
"mekanism.configgui.ctgy.storage", StorageEntry.class));
|
||||
list.add(new DummyCategoryElement(LangUtils.localize("mekanism.configgui.ctgy.client"),
|
||||
"mekanism.configgui.ctgy.client", ClientEntry.class));
|
||||
return list;
|
||||
@@ -98,6 +100,21 @@ public class GuiMekanismConfig extends GuiConfig {
|
||||
}
|
||||
}
|
||||
|
||||
public static class StorageEntry extends CategoryEntry {
|
||||
|
||||
public StorageEntry(GuiConfig owningScreen, GuiConfigEntries owningEntryList, IConfigElement prop) {
|
||||
super(owningScreen, owningEntryList, prop);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected GuiScreen buildChildScreen() {
|
||||
return new GuiConfig(owningScreen,
|
||||
new ConfigElement(Mekanism.configuration.getCategory("storage")).getChildElements(),
|
||||
owningScreen.modID, Configuration.CATEGORY_GENERAL, false, false,
|
||||
GuiConfig.getAbridgedConfigPath(Mekanism.configuration.toString()));
|
||||
}
|
||||
}
|
||||
|
||||
public static class ClientEntry extends CategoryEntry {
|
||||
|
||||
public ClientEntry(GuiConfig owningScreen, GuiConfigEntries owningEntryList, IConfigElement prop) {
|
||||
|
||||
Reference in new issue
Block a user