Position and Anchoring
SetAnchor
Sets the anchor point and relative frame for the region.Anchor point on the region (“CENTER”, “TOPLEFT”, etc.)
Frame to anchor relative to
Anchor point on the relative frame
SetOffset
Sets the X and Y offset from the anchor point.Horizontal offset in pixels
Vertical offset in pixels
GetXOffset / GetYOffset
Returns the current offset values.The offset value in pixels
SetOffsetRelative
Sets relative offset (used by animations and conditions).Relative X offset
Relative Y offset
UpdatePosition
Updates the region’s position based on current anchor and offset values.ResetPosition
Resets all position information.Alpha and Transparency
SetRegionAlpha
Sets the base alpha value for the region.Alpha value (0.0 to 1.0)
GetRegionAlpha
Returns the current effective alpha.Current alpha value (0.0 to 1.0)
SetAnimAlpha
Sets the animation alpha (multiplied with region alpha).Animation alpha value (0.0 to 1.0)
Progress Sources
SetProgressSource
Sets the progress source for the region.Progress source configuration:
[1]- Trigger number (-2=parent auto, -1=auto, 0=manual, >0=specific trigger)[2]- Type (“timer”, “elapsedTimer”, “number”)[3]- Property name for value[4]- Property name for total/duration[5]- Property name for inverse flag[6]- Property name for paused flag[7]- Property name for remaining time[8]- Use additional progress overlays
GetProgressSource
Returns the current progress source configuration.SetAdjustedMin / SetAdjustedMax
Sets minimum/maximum bounds for progress.Minimum/maximum value (number or percentage)
GetMinMaxProgress
Returns the current progress bounds.Minimum progress value
Maximum progress value
UpdateProgress
Updates the progress display based on current state.Actions
SoundPlay
Plays a sound with the given options.Sound options:
sound_type- “Play”, “Loop”, or “Stop”sound- Sound file path or ” custom” or ” KitID”sound_path- Custom sound file pathsound_kit_id- Sound kit IDsound_channel- Audio channel (“Master”, “SFX”, etc.)sound_repeat- Repeat interval for loopssound_fade- Fade out duration for stops
SoundStop
Stops the currently playing sound.Fade out duration in milliseconds
SendChat
Sends a chat message with the given options.Chat options:
message_type- “PRINT”, “WHISPER”, “CHANNEL”, etc.message- Message text with formattersmessage_dest- Destination (player name or channel)message_channel- Channel numberr,g,b- Text colormessage_custom- Custom functionmessage_formaters- Formatter configuration
RunCode
Runs custom Lua code.Function to execute in the aura environment
GlowExternal
Applies a glow effect to an external frame.Glow options:
glow_type- Type of glow effectglow_anchor- Anchor pointglow_frame- Target frame- Additional glow-specific parameters
Sub-Regions
AnchorSubRegion
Anchors a sub-region (text, glow, etc.) to the main region.The sub-region frame to anchor
“point” or “area”
Anchor point on the region or “sub.N.key” for sub-region anchoring
Anchor point on the sub-region
X offset
Y offset
Lifecycle Methods
Expand
Shows the region with start animations.- Calls
PreShow()if defined - Shows the region
- Runs start actions
- Plays start animations
- Notifies parent (for groups)
Collapse
Hides the region with finish animations.- Calls
PreHide()if defined - Runs finish actions
- Plays finish animations
- Hides the region
- Stops looping sounds
- Notifies parent (for groups)
Update
Updates the region based on current state.UpdateProgress()- Update progress display- Region-specific update logic (icon, text, etc.)
Tick
Called every frame when region needs per-frame updates.UpdateTick
Enable or disable per-frame updates.State Management
Regions track their current state:Sub-Region Events
Regions provide an event system for sub-regions:Available Events
"AlphaChanged"- Alpha value changed"UpdateProgress"- Progress updated"FrameTick"- Per-frame update"PreShow"- Before region shows"PreHide"- Before region hides
Examples
Custom Position Animation
Progress with Adjusted Bounds
Multi-Trigger Progress
Sound with Looping
Sub-Region Anchoring
See Also
- Icon Region - Icon display implementation
- Text Region - Text display implementation
- Progress Texture - Progress bar implementation
- Model Region - 3D model implementation
- Tables - Data structures including region state