Jump to content

[1.8] Editing and adding to Menu GUIs


Tedstar

Recommended Posts

This is my first post on the Forge website! :D

 

Please note that I have absolutely 0 experience with Forge, but I do know Java.

 

I was curious if anybody knows any good tutorials, or can explain to me, how to change and add to menu GUIs. I was mainly thinking of the singleplayer and multiplayer menus that list worlds/servers.

Link to comment
Share on other sites

net.minecraftforge.client.event.GuiScreenEvent

And shitload of sub-events are at your disposal. What exacly do you need?

As to using events - just google it.

 

Notes:

- Register client events in client proxy

- There are few event buses in mcForge - not every tutorial says that.

- GuiInit is called everytime when you resize screen

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

Basically, I was going to add a new section to the server list GUI, which would contain its own buttons. It would also involve the listed servers changing depending on which button was clicked (but I probably won't do that until after I get other stuff working).

 

If you want a basic layout of the panes I would be adding, I created this mark-up in Paint. Those are the resulting additions I was planning on making. The buttons would be listed inside of those. (And yes those are the pre-tiled textures)

 

 

On a side note: Is there any way to use a mod to bump up the default resolution with which the client launches? In order for the servers to fit, it needs to launch with a slightly bigger resolution (960 x 540).

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.