Jump to content

[1.8] Is there a way to change how tooltips are rendered?


andrej88

Recommended Posts

I want to write a mod that makes item (and other) tooltips look like they did in Beta, transluscent black boxes instead of the fancy purple ones:

 

Rb8G4QI.png

 

I found some older posts that mentioned drawHoveringText in GuiScreen.

 

Now, I managed to change the tooltip by overriding drawHoveringText in a custom container class, which extends GuiScreen (which is how I took the screenshot above). However, I would like to change the look in vanilla/other mods' screens as well. I looked through Forge's event handlers, specifically GuiScreenEvent, but it doesn't look like there are any hooks to override the tooltip that I could use, nor does it seem there are any events for methods which themselves call drawHoveringText.

 

Am I out of luck or is there some other way of going about this?

 

Thanks.

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.

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.