Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RenderTooltipEvent #81

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Add RenderTooltipEvent #81

wants to merge 1 commit into from

Conversation

glowredman
Copy link
Member

Adds an event to modify the way item tooltips are rendered.

I chose to redirect the call to GuiScreen.drawHoveringText() (which does the actual rendering) in GuiScreen.renderToolTip() instead of modifying GuiScreen.drawHoveringText() itself because that method is not aware of the ItemStack of which the tooltip is being rendered and the method may also used for other, unrelated texts.

Examples

Modifying the background and border colors (including translucency)

grafik

Modifying the coordinates

23-26-47.mp4

Changing the font

grafik

... and combinations of all of the above.

Set as Draft as long as I figure out how2compat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant