Jump to content

Problem using GUI's drawRect during RenderGameOverlayEvent


Recommended Posts

I'm trying to render some information on a bar at the top of the screen.

At the moment I'm just trying to get a single color rectangle to be rendered and make it scale nicely into the position I want it before I start adding text and icons to it.


So during a RenderGameOverlayEvent I do the following:


if (event.isCancelable() || event.type != ElementType.EXPERIENCE) {
drawRect(10, 10, 100, 100, 0x383838);


I have checked that the drawRect line is being run, but nothing happens on the screen. Which means no effect what so ever.


What reason could this be? I did use drawTexturedModalRect() method in my other mod and it worked perfectly while being called from the same kind of position.



If you guys dont get it.. then well ya.. try harder...

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.

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.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.