Jump to content

Recommended Posts

Posted (edited)

Hey,

I'm trying to change the background of GUIs through the BackgroundDrawnEvent which works well with "normal" GUIs (like the Options screen, Add server, or similiar).

But in GUI Lists (like the Select server view) the background gets overwritten or something. The event is called, but the background doesn't change (It's the default background)

 

Is there an alternate way to change the background for this kind of GUI?

 

Thanks in advance,

Summerfeeling

Edited by Summerfeeling
Posted
  On 11/2/2017 at 9:27 AM, diesieben07 said:

The methods you are talking about use the scrolling list (GuiSlot). That "component" always draws a background, it happens in GuiSlot::drawBackground and cannot be canceled. If you want to change the background for every GUI, why do you not use a resource pack?

Expand  

I gave it a try but there is the is the same problem as I would set the image via Reflection directly. The image is resized to 16x16 (or similar) and do not fill the entire background:

QDhLhJb.png

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.