public AEConfigGui( final GuiScreen parent ) { super( parent, getConfigElements(), AppEng.MOD_ID, false, false, GuiConfig.getAbridgedConfigPath( AEConfig.instance().getFilePath() ) ); }
@Override protected void actionPerformed(GuiButton button) { super.actionPerformed(button); } }
@Override public void drawScreen(int mouseX, int mouseY, float partialTicks) { // You can do things like create animations, draw additional elements, etc. here super.drawScreen(mouseX, mouseY, partialTicks); }
@Override protected GuiScreen buildChildScreen() { return new GuiConfig(this.owningScreen, getConfigElements(), this.owningScreen.modID, Configs.CATEGORY_BALANCE, true, true, this.owningScreen.title, ((this.owningScreen.titleLine2 == null ? "" : this.owningScreen.titleLine2) + " > " + this.name)); }
@Override public void initGui() { // You can add buttons and initialize fields here super.initGui(); }
@Override public GuiScreen createConfigGui(GuiScreen parentScreen) { return new GuiConfig(parentScreen, getConfigElements(), modid, false, false, title); }
@Override public void initGui() { super.initGui(); }
public GuiBotaniaConfig(GuiScreen parentScreen) { super(parentScreen, new ConfigElement(ConfigHandler.config.getCategory(Configuration.CATEGORY_GENERAL)).getChildElements(), LibMisc.MOD_ID, false, false, GuiConfig.getAbridgedConfigPath(ConfigHandler.config.toString())); }
@Override public GuiScreen createConfigGui(GuiScreen parent) { return new GuiConfig(parent, getConfigElements(), this.modid, false, false, this.title); }
@Override protected void actionPerformed(GuiButton button) { // You can process any additional buttons you may have added here super.actionPerformed(button); ValkyrienWarfareMod.applyConfig(ValkyrienWarfareMod.config); ValkyrienWarfareMod.config.save(); }
@Override public void drawScreen(int mouseX, int mouseY, float partialTicks) { super.drawScreen(mouseX, mouseY, partialTicks); }
public BaublesGuiFactory() { super(Baubles.MODID, GuiConfig.getAbridgedConfigPath(Config.config.toString())); }
@Override protected GuiScreen buildChildScreen() { return new GuiConfig(this.owningScreen, this.configElement.getChildElements(), this.owningScreen.modID, owningScreen.allRequireWorldRestart || this.configElement.requiresWorldRestart(), owningScreen.allRequireMcRestart || this.configElement.requiresMcRestart(), this.owningScreen.title, I18n.format("openmodslib.config.update_warning")); }
@Override protected void actionPerformed(GuiButton button) { super.actionPerformed(button); if (Config.isCheatItemsEnabled() && ServerInfo.isJeiOnServer()) { JustEnoughItems.getProxy().sendPacketToServer(new PacketRequestCheatPermission()); } } }
@Override public void drawScreen(int mouseX, int mouseY, float partialTicks) { title = Utilities.stringToGolden("Craft The Way You Want", 7); super.drawScreen(mouseX, mouseY, partialTicks); }
public HQMConfigGui(GuiScreen parentScreen) { super(parentScreen, ModConfig.getConfigElements(), ModInformation.ID, false, false, GuiConfig.getAbridgedConfigPath(ModConfig.config.toString())); } }
@Override protected GuiScreen buildChildScreen() { Configuration configuration = MBEConfiguration.getConfig(); ConfigElement cat_general = new ConfigElement(configuration.getCategory(MBEConfiguration.CATEGORY_NAME_OTHER)); List<IConfigElement> propertiesOnThisScreen = cat_general.getChildElements(); String windowTitle = configuration.toString(); return new GuiConfig(this.owningScreen, propertiesOnThisScreen, this.owningScreen.modID, MBEConfiguration.CATEGORY_NAME_OTHER, this.configElement.requiresWorldRestart() || this.owningScreen.allRequireWorldRestart, this.configElement.requiresMcRestart() || this.owningScreen.allRequireMcRestart, windowTitle); //this is a complicated object that specifies the category's gui screen, to better understand // how it works, look into the definitions of the called functions and objects } }
public GuiFurnitureConfig(GuiScreen parent) { super(parent, getConfigElements(), "cfm", false, false, GuiConfig.getAbridgedConfigPath(ConfigurationHandler.config.toString())); }
@Override protected GuiScreen buildChildScreen() { //The following GuiConfig object specifies the configID of the object and thus will force-save // when closed. //Parent GuiConfig object's entryList will also be refreshed to reflect the changes. // --see GuiFactory of Forge for more info //Additionally, Forge best practices say to put the path to the config file for the category as // the title for the category config screen Configuration configuration = MBEConfiguration.getConfig(); ConfigElement cat_general = new ConfigElement(configuration.getCategory(MBEConfiguration.CATEGORY_NAME_GENERAL)); List<IConfigElement> propertiesOnThisScreen = cat_general.getChildElements(); String windowTitle = configuration.toString(); return new GuiConfig(this.owningScreen, propertiesOnThisScreen, this.owningScreen.modID, MBEConfiguration.CATEGORY_NAME_GENERAL, this.configElement.requiresWorldRestart() || this.owningScreen.allRequireWorldRestart, this.configElement.requiresMcRestart() || this.owningScreen.allRequireMcRestart, windowTitle); //this is a complicated object that specifies the category's gui screen, to better understand // how it works, look into the definitions of the called functions and objects } }
public GuiConfigCategory(GuiScreen parentScreen, String baseCategory) { super(parentScreen, getAllElements(baseCategory), LibMisc.MOD_ID, false, false, GuiConfig.getAbridgedConfigPath(ModuleLoader.config.toString())); }