Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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]

  • 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.

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

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/

  • 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.

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

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/

  • 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.

width=700 height=200http://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.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.