Jump to content

Recommended Posts

Posted

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.

width=700 height=200http://i.imgur.com/J4rrGt6.png[/img]

Posted

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.

width=700 height=200http://i.imgur.com/J4rrGt6.png[/img]

Posted

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/

Posted

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.

width=700 height=200http://i.imgur.com/J4rrGt6.png[/img]

Posted

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/

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.