Posted August 1, 201312 yr I know this has been suggested before, but I'd like a way to make an options screen for my mod. Something like Options > Mod options > mod name. I made a rough implementation attached below. (It doesn't scroll if there's enough mods that use it) It requires a tweak to GuiOptions (Unless there's some other way of doing it) In initGui(): this.buttonList.add(new GuiButton(9001, this.width/2-155+160, this.height / 6 -12 + 24*3, 150, 20, "Mod options")); In actionPerformed() if (par1GuiButton.id == 9001) { this.mc.gameSettings.saveOptions(); GuiModOptions.getInstance().parentScreen = this; this.mc.displayGuiScreen(GuiModOptions.getInstance()); } A mod can register an options page like this: GuiModOptions.addOptionPage("Button title", guiScreenWithParentSubclass); Screenshots here Since attachments aren't working: GuiModOptions GuiScreenWithParent
August 20, 201312 yr That would be a good idea, but it might get a little annoying to work with, assuming that nobody makes a base for the Mod Option GUI pages. I could get to work on that right now, actually. EDIT: I just realized that that might also require config updating, which I'm not good with... http://i.imgur.com/ivK3J.png[/img] I'm a little surprised that I am still ranked as a "Forge Modder," having not posted a single mod since my animals mod... I have to complete Digging Deeper!, fast!
August 21, 201312 yr As usual, if you have stuff/patches you'd like to contribute to Forge, PR it. Read the EAQ before posting! OR ELSE! This isn't building better software, its trying to grab a place in the commit list of a highly visible github project. www.forgeessentials.com Don't PM me, I don't check this account unless I have to.
August 24, 201312 yr Author Finalized the code and created a pull request on github. https://github.com/MinecraftForge/MinecraftForge/pull/742
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.