Jump to content

[1.7.10] Configuration Help


WARDOGSK93

Recommended Posts

hi this is a bit of a noob question to some of you guys, but its I would say its also a bit in the advanced side of modding.

 

how would I make it so when you change a config option (in the new config guis,) it would pop up a message or something saying "the change CONFIG_CHANGE requires a MC restart" or something like that

Link to comment
Share on other sites

in the configuration gui class where you have:

 

super(screen, new ConfigElement(ConfigurationHandler.configuration.getCategory("(category)")).getChildElements(), Reference.MODID, false, false, GuiConfig.getAbridgedConfigPath(ConfigurationHandler.configuration.toString()));

 

change the second false to true

 

super(screen, new ConfigElement(ConfigurationHandler.configuration.getCategory("(category)")).getChildElements(), Reference.MODID, false, true, GuiConfig.getAbridgedConfigPath(ConfigurationHandler.configuration.toString()));

Link to comment
Share on other sites

Solution:

 

in the configuration gui class where you have:

 

super(screen, new ConfigElement(ConfigurationHandler.configuration.getCategory("(category)")).getChildElements(), Reference.MODID, false, false, GuiConfig.getAbridgedConfigPath(ConfigurationHandler.configuration.toString()));

 

change the second false to true

 

super(screen, new ConfigElement(ConfigurationHandler.configuration.getCategory("(category)")).getChildElements(), Reference.MODID, false, true, GuiConfig.getAbridgedConfigPath(ConfigurationHandler.configuration.toString()));

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.