Skip to main content
Version: v2.4.0 (Current)

Lua Constants

Artok Studio exposes several constants through nested tables in the UI global.

📐 UI.ALIGN

Used with UI.align(obj, align, x, y).

  • UI.ALIGN.CENTER
  • UI.ALIGN.TOP_LEFT
  • UI.ALIGN.TOP_MID

🚩 UI.FLAG

Used with UI.addFlag or UI.hasFlag.

  • UI.FLAG.HIDDEN: Hide the object.
  • UI.FLAG.CLICKABLE: Toggle touch interaction.
  • UI.FLAG.SCROLLABLE: Toggle scrolling behavior.

🎭 UI.EVENT

Standard events for manual binding.

  • UI.EVENT.PRESSED
  • UI.EVENT.CLICKED
  • UI.EVENT.VALUE_CHANGED

🏗 UI.PROP

Used for the UI.animate function.

  • UI.PROP.X: Animate horizontal position.
  • UI.PROP.Y: Animate vertical position.
  • UI.PROP.WIDTH: Animate width.
  • UI.PROP.HEIGHT: Animate height.