Skip to content

OryUITooltip

Kevin Cross edited this page Sep 11, 2019 · 2 revisions

Available Functions

OryUIAnimateTooltip(tooltipID)

Required to fade out the tooltip after 1.5 seconds.

OryUICreateTooltip(parameters$)

Creates a tooltip and returns a tooltip ID. See Available Parameters section below for the options.

OryUIDeleteTooltip(tooltipID)

Deletes a tooltip.

OryUIGetTooltipVisible(tooltipID)

Returns whether or not the tooltip is visible.

OryUIHideTooltip(tooltipID)

Hides the tooltip.

OryUIShowTooltip(tooltipID)

Shows the tooltip.

OryUIUpdateTooltip(tooltipID, parameters$)

Updates a tooltip. See Available Parameters section below for the options.

Available Parameters (all optional)

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 Code

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

Clone this wiki locally