Posted December 14, 201311 yr How do you add a picture to the player item bar on the bottom of the screen (without editing the vanilla code if it can)? I never post on the forums, but when I do, I have no clue how to do a certain thing.
December 14, 201311 yr Author How do you use it? @ForgeSubscribe public void RenderGameOverlayEvent(RenderGameOverlayEvent event) { } I never post on the forums, but when I do, I have no clue how to do a certain thing.
December 14, 201311 yr Author Good start, but you need to use the Pre event and then only act on one EventType do not draw multiple times. I have no idea how to do that, can you give me an example I never post on the forums, but when I do, I have no clue how to do a certain thing.
December 15, 201311 yr Author The RenderGameOverlayEvent fires a lot. First off, there is multiple EventType s (look at the class to see which exactly), like the Healthbar, the foodbar, etc. For each of these there is the Pre and Post event, which should be self-explanatory. You need to draw your stuff when one of these happens, the most sensible thing to do would be to react on EventType ALL and Post. I still don't get how to use it... I never post on the forums, but when I do, I have no clue how to do a certain thing.
December 15, 201311 yr Author I just dont get anything, isnt there a step by step tutorial or something? I never post on the forums, but when I do, I have no clue how to do a certain thing.
December 16, 201311 yr Author I never rendered a sprite before... I never post on the forums, but when I do, I have no clue how to do a certain thing.
December 16, 201311 yr Author Could you just show me some code? I never post on the forums, but when I do, I have no clue how to do a certain thing.
December 16, 201311 yr Author No. Then I just have to say that you can not help me, because I have no idea what you mean with: Bind the texture and then use drawTexturedModalRect from the Gui class. You know how to render an image, do you? Then do that when the appropriate event fires. I never post on the forums, but when I do, I have no clue how to do a certain thing.
December 16, 201311 yr How do you add a picture to the player item bar on the bottom of the screen (without editing the vanilla code if it can)? resource pack Only code when your having fun doing it.
December 16, 201311 yr http://www.youtube.com/watch?v=5Yl6YdJImPY ? Haven't watched it myself but looks promising.
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.