Tooltips - Grisgram/gml-raptor GitHub Wiki

You are here:

Base Controls - Containers - ✔Tooltips - Clickables - Checkables - ListBox - InputBox - Mouse Cursor - ControlTree


Controls With Tooltip

This is another major child object, directly derived from _baseControl, and all controls are also a child of this. The Label, TextButton, ImageButton and the InputBox can show a tooltip when the mouse hovers over them.
They extend the variables by these entries:

image

tooltip_text The text to display as tooltip.
This value follows the same rules as the text property!
If it starts with =, it will be resolved through LG Localization
tooltip_object The object to use to display the tooltip. Tooltip is the default Tooltip object of raptor but you can derive your own tooltip (it must be a child of Tooltip) to have more feature-rich tooltips displayed

Here are some examples, what you can achieve with this:

Default Tooltip Taken from the Example Project
image
Simple Icon Tooltip Taken from a website I made
image
Multi-Color Stats Tooltip Taken from one of my games currently in development
image

You are here:

Base Controls - Containers - ✔Tooltips - Clickables - Checkables - ListBox - InputBox - Mouse Cursor - ControlTree

⚠️ **GitHub.com Fallback** ⚠️