Page MenuHomeFeedback Tracker

lbSetTooltip doesn't support line breaks
Reviewed, WishlistPublic

Description

The command lbSetTooltip will only render text on a single line. You cannot perform a linebreak via <br /> or \n.

The command should support line breaks.

Details

Legacy ID
490909489
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce

_description = getText (configFile >> "CfgWeapons" >> "SMG_01_F" >> "descriptionShort");
lbSetTooltip [IDCHERE, 0, _description];

Hover over it and it'll render the text on one line only

Event Timeline

GossamerSolid edited Additional Information. (Show Details)
GossamerSolid set Category to Scripting.
GossamerSolid set Reproducibility to Always.
GossamerSolid set Severity to None.
GossamerSolid set Resolution to Open.
GossamerSolid set Legacy ID to 490909489.May 7 2016, 2:48 PM

i agree it would be small yet worthy improvement

would be great

Linebreaks are obviously supported within the engine for listboxes, tooltips, etc (the inventory dialog shows that) so can we please have them made available for us to use?

Oh yeah, parsetext with lbsetTooltip or ctrlSetTooltip would be awesome. So i could fullfill my inventory hover script :)

Greetings