lorddusk / HQM

Hardcore Questing Mode
GNU Lesser General Public License v3.0
77 stars 61 forks source link

Tooltips Show Partly Offscreen #675

Closed Darkosto closed 1 year ago

Darkosto commented 1 year ago

Hello!

When working with some items that have a longer tooltip, they will appear offscreen and are unreadable. When attempting to use a line-break in the lang file to fix this, HQM will show a broken character instead:

image image

The line break works normally in the inventory: image

Is there a possibility a tooltip wrapper could be added to condense a tooltip and not allow it to go offscreen?

Thanks! Darkosto

MC: 1.18.2 Forge: 40.2.0 HQM: 5.11.2

Mrbysco commented 1 year ago

From testing the call to gui.renderTooltipL over in QuestRewardsGraphics#drawRewardMouseOver doesn't work correctly. Changing the call to gui.renderComponentTooltip seems to properly wrap the tooltip. I could whip up a PR if wanted :)

kirderf1 commented 1 year ago

Fixed in HQM-1.18.2-5.11.3-forge.