Posted August 20, 201510 yr So I'm making a GuiFactory, and I have some questions about some of the functions. I'm watching Pahimar's tutorial on this, and he says that he's got no idea what the point of initialize, runtimeGuiCategories or getHandlerFor is, but that tutorial is for 1.7.10. Now I'm wondering if anything has changed for 1.8, and whether there is an actual point to these functions, and if so how to utilize them. Thanks in advance! Who are you? Why have you brought me here? And why are there so many PewDiePie fanboys surrounding meeeeeeeee....... *falls into pit and dies*. Also this. Check it out. http://i.imgur.com/J4rrGt6.png[/img]
August 20, 201510 yr Author UPDATE Also wondering how to pass multiple config categories to the GuiConfig class: public RSGuiConfig(GuiScreen screen) { super(screen, //need multiple categories new ConfigElement(ConfigurationHandler.config.getCategory(ConfigCategories.KEN_SCULPTURE.toString())).getChildElements(), ModConstants.MOD_ID, false, false, GuiConfig.getAbridgedConfigPath(ConfigurationHandler.config.toString())))); } Who are you? Why have you brought me here? And why are there so many PewDiePie fanboys surrounding meeeeeeeee....... *falls into pit and dies*. Also this. Check it out. http://i.imgur.com/J4rrGt6.png[/img]
August 20, 201510 yr Author Sorry: bump Who are you? Why have you brought me here? And why are there so many PewDiePie fanboys surrounding meeeeeeeee....... *falls into pit and dies*. Also this. Check it out. http://i.imgur.com/J4rrGt6.png[/img]
August 21, 201510 yr 1.8 is the same as 1.7.10 for GUI stuff. Are you making a configuration GUI? I have a tutorial on that here: http://jabelarminecraft.blogspot.com/p/minecraft-modding-configuration-guis.html Regarding multiple config categories, I haven't tried that yet. If you want to use the built-in config gui screen, I think it is only one category per page. But one way you could do it is you could make the first page of the GUI actually just have buttons or menu of categories and have those bring up the category-specific pages. Check out my tutorials here: http://jabelarminecraft.blogspot.com/
August 21, 201510 yr Author Have you any idea the normal equivalent to DummyCategoryElement? I can't quite find it and I'm pretty sure it's bad practice to use the Forge Dummy classes, although I have seen https://github.com/NovaViper/ZeroQuest/blob/master/src/main/java/net/novaviper/zeroquest/common/config/ConfigGuiFactory.java using them... EDIT 1 Also not so sure if ConfigCategory is the way to go... Who are you? Why have you brought me here? And why are there so many PewDiePie fanboys surrounding meeeeeeeee....... *falls into pit and dies*. Also this. Check it out. http://i.imgur.com/J4rrGt6.png[/img]
August 21, 201510 yr Did you look at my tutorial? Anyway, you can look at one of my implementations of a config GUI and GUI factory here: https://github.com/jabelar/MagicBeans-1.8fixed/tree/master/src/main/java/com/blogspot/jabelarminecraft/magicbeans/gui I only have a single category though. Like I said, I think the way to do multiple categories is to first come up with a regular GuiScreen that has buttons for each category, and have those buttons bring up the config GUI for that category. Understand what I mean? Check out my tutorials here: http://jabelarminecraft.blogspot.com/
August 21, 201510 yr Author Looked at the tutorial, I've decided I'm just going to use DummyCategoryElement. It seems to work quite well, with no obvious drawbacks. Who are you? Why have you brought me here? And why are there so many PewDiePie fanboys surrounding meeeeeeeee....... *falls into pit and dies*. Also this. Check it out. http://i.imgur.com/J4rrGt6.png[/img]
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.