Posted January 22, 20205 yr 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..
January 22, 20205 yr Author Then when you have to work with GUIs are you building your own system that extends the usual screen and screenContainer class or are you still using the Minecraft's one and just keep the "messyness"?
January 22, 20205 yr 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.
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.