HomeWildfire Games

Generalize icon-specific tooltips to a tag, streamline code.

Description

Generalize icon-specific tooltips to a tag, streamline code.

We can currently specify a custom tooltip for an icon. This extends that to a generic tag [tooltip='something']...[/tooltip] for any particular piece of text, and removes the iconTooltip hardcoding by instead using a virtual GetTooltipText call since all IGUIObject descendants have a tooltip. This is both cleaner & more efficient.
Removes the ability to set a custom tooltip style (that doesn't seem particularly useful), it'll reuse the style of the CText itself.

Differential Revision: https://code.wildfiregames.com/D3895

Event Timeline

Freagarach added inline comments.
/ps/trunk/source/gui/SettingTypes/CGUIString.cpp
158

?

wraitii added inline comments.May 2 2021, 9:06 AM
/ps/trunk/source/gui/SettingTypes/CGUIString.cpp
158

Just being explicit :P

Thanks for noticing.

Langbart raised a concern with this commit.Nov 12 2021, 4:27 PM
Langbart added a subscriber: Langbart.

A small visual change was noted, see #6380.

This commit now has outstanding concerns.Nov 12 2021, 4:27 PM
Langbart resigned from this commit.Mar 7 2022, 11:09 AM
This commit no longer requires audit.Mar 7 2022, 11:09 AM