CreateUiClip
An empty clip to hang other elements under.
A panel: put texts and rectangles under it with their parent, then move, fade or hide the whole with one call
(SetUiPos, SetUiAlpha, HideUiElement). A child’s x and y are inside its parent.
Syntax
Section titled “Syntax”CreateUiClip(name [, parent])| Parameter | Type | |
|---|---|---|
name |
string | the clip’s name |
parent |
string | another clip’s name; none = the screen (optional) |
Returns
Section titled “Returns”string - the name
Example
Section titled “Example”CreateUiClip("panel")CreateUiRect("bg", 0, 0, 300, 80, 0x000000, 60, "panel")CreateUiText("title", 12, 8, "The hunt", COLOR_GOLD, 1, UI_ALIGN_LEFT, "panel")SetUiPos("panel", 40, 300)See also
Section titled “See also”SetUiPos · DestroyUiElement · the The game’s UI for a script group of the index
