Posted November 14, 201312 yr Hi! I am writing a mod that reworks alot about the visuals in the game and I want to completely override a gui. Not use its methods to add/remove stuff, but 100% overdo it. I'm thinking about maybe detecting if that Gui is up on each tick's end and if it is Display mine instead. any better methods for this?
November 14, 201312 yr "Not use its methods to add/remove stuff, but 100% overdo it." Not sure if you are talking about rewriting GUI code or just replacing every Vanilia GUI with yours? If the 1st one - why do you use Forge then... I belive that's second one - visit this page http://www.minecraftforge.net/wiki/Gui_Overlay There are also methods for removing/adding other stuff - I am just not really sure what you want to do :L Please give an example 1.7.10 is no longer supported by forge, you are on your own.
November 14, 201312 yr If you're trying to change the look, you can use texture packs. 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.
November 14, 201312 yr Author Okay, its hard to think of an example. Imagine this I want to create a new inventory GUI. I do not want to modify the essential minecraft code in any way at all. Yet When i open the inventory I want my mod to know that the inventory has been opened and in fact replaces the inventory with lets say a new inventory one with an infinite amount of slots(this is hypothetical), How do i do that without directly modifying things in the GuiInventory class?
November 14, 201312 yr From forge changelog: Build 1.6.2-9.10.1.850 (...) Added GuiOpenEvent You can use this for a clean way to override guis, without needing an TickHandler to check if the gui you want to override is open and show your own gui Proper close check You could use this. If you guys dont get it.. then well ya.. try harder...
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.