Widget Tooltip Setup – Arma Reforger
ScriptedWidgetTooltips is an Enfusion API for tooltips that is currently employed in core menus. It is expanded in scripts by SCR_ScriptedWidgetTooltip, and allows setting up a customisable tooltip triggered by the mouse hovering a particular widget.
Most widgets in .layout files support it, which can be set in their Behavior section. Choose SCR_ScriptedWidegtTooltip as the Tooltip class.
Once the class is set, there are two fields to provide: a .conf file and a tag. The config file must be of SCR_ScriptedWidgetTooltipPresets type.
Similarly to Configurable Dialogs, the tooltip config provides modular options for tooltip's appearance and behaviour. Override the Content class to provide further customisation.
The tooltips are automatically displayed on mouse hover and gamepad focus.
SCR_ScriptedWidgetTooltip provides invokers for different stages of a tooltip's lifetime.
These are static, so make sure to check that the tooltip firing an invoker is the one your are actually interested in! You can use the cIsValid() method, which checks for tags and optionally for hoverWidget and config file.