-
Notifications
You must be signed in to change notification settings - Fork 11
OryUITooltip
Kevin Cross edited this page Sep 11, 2019
·
2 revisions
Required to fade out the tooltip after 1.5 seconds.
Creates a tooltip and returns a tooltip ID. See Available Parameters section below for the options.
Deletes a tooltip.
Returns whether or not the tooltip is visible.
Hides the tooltip.
Shows the tooltip.
Updates a tooltip. See Available Parameters section below for the options.
| Parameter | Description |
|---|---|
| color | The colour of the tooltip. Accepts RGB values, and RGBA values (comma delimited) Also accepts MakeColor() value/id, and hex color codes. |
| depth | The depth of the tooltip. |
| text | The text shown in the menu item. |
| textAlignment | The alignment of the text. Accepts left, center, and right. Also accepts the numeric values 0, 1, and 2. |
| textBold | If the text is bold. Accepts the values true, false, 0, and 1. |
| textColor | The colour of the text. Accepts RGB values, and RGBA values (comma delimited) Also accepts MakeColor() value/id, and hex color codes. |
| textSize | The size of the text. Accepts decimals. |
Example
button = OryUICreateButton("size:30,5;color:41,128,185;offset:center;position:50,50;text:Show Tooltip;textColor:255,255,255")
tooltip = OryUICreateTooltip("text:Button pressed")
do
OryUIStartTrackingTouch()
OryUIAnimateTooltip(tooltip)
if (OryUIGetButtonReleased(button))
OryUIShowTooltip(tooltip, 50, 90)
endif
OryUIEndTrackingTouch()
Sync()
loop