add mekce client config menu and catogory

This commit is contained in:
maggi373 committed 2023-02-21 01:08:43 +01:00
1 parent 5ee8196b8a
commit f013f37890
5 files changed
+30 -5

No files matched your search

@@ -31,6 +31,7 @@ public class GuiMekanismConfig extends GuiConfig
list.add(new DummyCategoryElement(LangUtils.localize("mekanism.configgui.ctgy.client"), "mekanism.configgui.ctgy.client", ClientEntry.class));
list.add(new DummyCategoryElement(LangUtils.localize("mekanism.configgui.ctgy.mekce"), "mekanism.configgui.ctgy.mekce", MEKCEEntry.class));
list.add(new DummyCategoryElement(LangUtils.localize("mekanism.configgui.ctgy.recipe"), "mekanism.configgui.ctgy.recipe", RecipeEntry.class));
list.add(new DummyCategoryElement(LangUtils.localize("mekanism.configgui.ctgy.mekce_client"), "mekanism.configgui.ctgy.mekce_client", RecipeEntry.class));
return list;
}
@@ -135,6 +136,23 @@ public class GuiMekanismConfig extends GuiConfig
GuiConfig.getAbridgedConfigPath(Mekanism.configuration.toString()));
}
}
public static class MEKCEClientEntry extends CategoryEntry
{
public MEKCEClientEntry(GuiConfig owningScreen, GuiConfigEntries owningEntryList, IConfigElement prop)
{
super(owningScreen, owningEntryList, prop);
}
@Override
protected GuiScreen buildChildScreen()
{
return new GuiConfig(owningScreen,
new ConfigElement(Mekanism.configurationce.getCategory("mekce_client")).getChildElements(),
owningScreen.modID, "mekce_client", false, false,
GuiConfig.getAbridgedConfigPath(Mekanism.configurationce.toString()));
}
}
public static class RecipeEntry extends CategoryEntry
{
public RecipeEntry(GuiConfig owningScreen, GuiConfigEntries owningEntryList, IConfigElement prop)