Summerfeeling Posted November 2, 2017 Posted November 2, 2017 (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 November 4, 2017 by Summerfeeling Quote
Summerfeeling Posted November 4, 2017 Author Posted November 4, 2017 On 2.11.2017 at 10: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? 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: Quote
Summerfeeling Posted November 4, 2017 Author Posted November 4, 2017 22 minutes ago, diesieben07 said: Yes, that is how the background is drawn. I know. That's why I wanted to change it through an event. But is seems to not be possible that easy. I think, this can be closed. Quote
Recommended Posts
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.