Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted

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.

Posted

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.

Posted

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.

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.