Jump to content

What do you think about GUI in Minecraft ?


dylandmrl

Recommended Posts

Hello guys,

 

For my mod I need to work a lot with GUI and for once nothing wrong is happening. However, I find the code of Minecraft very messy and inconstitent.

 

I don't have the code in front of my eyes right now but I have figured out many things that are very stranger. As an example, all widget has a renderbutton when a widget isnt always a button. Container has a guiLeft when a widget as a x. The screen has a width variable for the width of the whole screen and not for his own width. KeyPressed in container doesnt focus on the widget focused first. When you resize the screen init is called when we could just move childrens and avoid to re initialise everything. And so on.

 

I am maybe wrong with several principles. In general, what do you think about GUI. How do you handle them, do you have subclass like MyScreen and MyContainerScreen for consistency ?

 

Because I am wondering about redo everything from focusable gui even my own container screen and so on..

Link to comment
Share on other sites

2 hours ago, dylandmrl said:

are you still using the Minecraft's one and just keep the "messyness"?

This. Because its less work.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.