Skip to content

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.

CreateUiClip(name [, parent])
Parameter Type
name string the clip’s name
parent string another clip’s name; none = the screen (optional)

string - the name

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)

SetUiPos · DestroyUiElement · the The game’s UI for a script group of the index