Package cpw.mods.fml.client.config

Examples of cpw.mods.fml.client.config.GuiConfig


    }

    @Override
    protected GuiScreen buildChildScreen()
    {
      return new GuiConfig(this.owningScreen,
          new ConfigElement(Mekanism.configuration.getCategory("tools.general")).getChildElements(),
          this.owningScreen.modID, Configuration.CATEGORY_GENERAL, this.configElement.requiresWorldRestart() || this.owningScreen.allRequireWorldRestart,
          this.configElement.requiresMcRestart() || this.owningScreen.allRequireMcRestart,
          GuiConfig.getAbridgedConfigPath(Mekanism.configuration.toString()));
    }
View Full Code Here


    }

    @Override
    protected GuiScreen buildChildScreen()
    {
      return new GuiConfig(this.owningScreen,
          new ConfigElement(Mekanism.configuration.getCategory("tools.armor-balance")).getChildElements(),
          this.owningScreen.modID, Configuration.CATEGORY_GENERAL, this.configElement.requiresWorldRestart() || this.owningScreen.allRequireWorldRestart,
          this.configElement.requiresMcRestart() || this.owningScreen.allRequireMcRestart,
          GuiConfig.getAbridgedConfigPath(Mekanism.configuration.toString()));
    }
View Full Code Here

    }

    @Override
    protected GuiScreen buildChildScreen()
    {
      return new GuiConfig(this.owningScreen,
          new ConfigElement(Mekanism.configuration.getCategory("tools.tool-balance")).getChildElements(),
          this.owningScreen.modID, Configuration.CATEGORY_GENERAL, this.configElement.requiresWorldRestart() || this.owningScreen.allRequireWorldRestart,
          this.configElement.requiresMcRestart() || this.owningScreen.allRequireMcRestart,
          GuiConfig.getAbridgedConfigPath(Mekanism.configuration.toString()));
    }
View Full Code Here

    }

    @Override
    protected GuiScreen buildChildScreen()
    {
      return new GuiConfig(this.owningScreen,
          new ConfigElement(Mekanism.configuration.getCategory(Configuration.CATEGORY_GENERAL)).getChildElements(),
          this.owningScreen.modID, Configuration.CATEGORY_GENERAL, false, false,
          GuiConfig.getAbridgedConfigPath(Mekanism.configuration.toString()));
    }
View Full Code Here

    }

    @Override
    protected GuiScreen buildChildScreen()
    {
      return new GuiConfig(this.owningScreen,
          new ConfigElement(Mekanism.configuration.getCategory("usage")).getChildElements(),
          this.owningScreen.modID, Configuration.CATEGORY_GENERAL, false, false,
          GuiConfig.getAbridgedConfigPath(Mekanism.configuration.toString()));
    }
View Full Code Here

            @Override
            protected GuiScreen buildChildScreen()
            {
                // This GuiConfig object specifies the configID of the object and as such will force-save when it is closed. The parent
                // GuiConfig object's entryList will also be refreshed to reflect the changes.
                return new GuiConfig(this.owningScreen,
                        (new ConfigElement(ForgeModContainer.getConfig().getCategory(Configuration.CATEGORY_GENERAL))).getChildElements(),
                        this.owningScreen.modID, Configuration.CATEGORY_GENERAL, this.configElement.requiresWorldRestart() || this.owningScreen.allRequireWorldRestart,
                        this.configElement.requiresMcRestart() || this.owningScreen.allRequireMcRestart,
                        GuiConfig.getAbridgedConfigPath(ForgeModContainer.getConfig().toString()));
            }
View Full Code Here

                        ModOverridesEntry.class));
                list.addAll((new ConfigElement(ForgeChunkManager.getDefaultsCategory())).getChildElements());
   
                // This GuiConfig object specifies the configID of the object and as such will force-save when it is closed. The parent
                // GuiConfig object's propertyList will also be refreshed to reflect the changes.
                return new GuiConfig(this.owningScreen, list, this.owningScreen.modID, "chunkLoader",
                        this.configElement.requiresWorldRestart() || this.owningScreen.allRequireWorldRestart,
                        this.configElement.requiresMcRestart() || this.owningScreen.allRequireMcRestart,
                        GuiConfig.getAbridgedConfigPath(ForgeChunkManager.getConfig().toString()),
                        I18n.format("forge.configgui.ctgy.forgeChunkLoadingConfig"));
            }
View Full Code Here

                list.add(new DummyCategoryElement("addForgeChunkLoadingModCfg", "forge.configgui.ctgy.forgeChunkLoadingAddModConfig",
                        AddModOverrideEntry.class));
                for (ConfigCategory cc : ForgeChunkManager.getModCategories())
                    list.add(new ConfigElement(cc));
   
                return new GuiConfig(this.owningScreen, list, this.owningScreen.modID,
                        this.configElement.requiresWorldRestart() || this.owningScreen.allRequireWorldRestart,
                        this.configElement.requiresMcRestart() || this.owningScreen.allRequireMcRestart, this.owningScreen.title,
                        I18n.format("forge.configgui.ctgy.forgeChunkLoadingModConfig"));
            }
View Full Code Here

            @Override
            public boolean isChanged()
            {
                if (childScreen instanceof GuiConfig)
                {
                    GuiConfig child = (GuiConfig) childScreen;
                    return child.entryList.listEntries.size() != child.initEntries.size() || child.entryList.hasChangedEntry(true);
                }
                return false;
            }
View Full Code Here

            @Override
            public void undoChanges()
            {
                if (childScreen instanceof GuiConfig)
                {
                    GuiConfig child = (GuiConfig) childScreen;
                    for (IConfigEntry ice : child.entryList.listEntries)
                        if (!child.initEntries.contains(ice) && ForgeChunkManager.getConfig().hasCategory(ice.getName()))
                            ForgeChunkManager.getConfig().removeCategory(ForgeChunkManager.getConfig().getCategory(ice.getName()));
                   
                    child.entryList.listEntries = new ArrayList<IConfigEntry>(child.initEntries);
View Full Code Here

TOP

Related Classes of cpw.mods.fml.client.config.GuiConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.