Region Type
Default Configuration
Orientation Types
HORIZONTAL- Fill left to rightHORIZONTAL_INVERSE- Fill right to leftVERTICAL- Fill bottom to topVERTICAL_INVERSE- Fill top to bottomCLOCKWISE- Circular fill clockwiseANTICLOCKWISE- Circular fill counter-clockwise
Functions
Color
Sets the foreground texture color and alpha.Red color component (0-1)
Green color component (0-1)
Blue color component (0-1)
Alpha transparency (0-1)
ColorAnim
Sets animated color values for the foreground.Red color component (0-1)
Green color component (0-1)
Blue color component (0-1)
Alpha transparency (0-1)
GetColor
Returns current foreground color values.Red color component (0-1)
Green color component (0-1)
Blue color component (0-1)
Alpha transparency (0-1)
SetValueOnTexture
Sets the progress value (0-1) and updates the texture display.Progress value from 0 to 1
Scale
Scales the region by the given factors.Horizontal scale factor (negative mirrors horizontally)
Vertical scale factor (negative mirrors vertically)
Rotate
Rotates the texture by the specified angle.Rotation angle in radians
GetRotation
Returns the current rotation angle.Current rotation in radians
SetTexture
Changes the foreground texture (and background if sameTexture is enabled).Path to texture file
SetForegroundDesaturated
Converts foreground texture to grayscale.true for grayscale, false for full color
SetBackgroundDesaturated
Converts background texture to grayscale.true for grayscale, false for full color
SetBackgroundColor
Sets the background texture color.Red color component (0-1)
Green color component (0-1)
Blue color component (0-1)
Alpha transparency (0-1)
SetRegionWidth
Sets the base width of the region.Width in pixels
SetRegionHeight
Sets the base height of the region.Height in pixels
SetInverse
Inverts the fill direction.true to invert fill direction
SetOrientation
Changes the progress orientation.One of: HORIZONTAL, HORIZONTAL_INVERSE, VERTICAL, VERTICAL_INVERSE, CLOCKWISE, ANTICLOCKWISE
SetMirror
Mirrors the texture horizontally.true to mirror horizontally
SetOverlayColor
Sets the color of an overlay texture.Overlay index
Red color component (0-1)
Green color component (0-1)
Blue color component (0-1)
Alpha transparency (0-1)
UpdateTime
Updates progress based on duration and expiration time.UpdateValue
Updates progress based on value and total.Update
Refreshes the entire region including texture and progress.Texture Transformation
Progress textures support advanced transformation:Crop Settings
Control how much of the texture is cropped:Offset Settings
Shift the texture position:Rotation
Rotate the entire texture:Circular Progress
For circular/radial progress, configure start and end angles:Compress Mode
Compress mode scales the texture as it fills instead of revealing:Smooth Progress
Enable smooth progress transitions:Blend Modes
Control how textures blend with background:Properties
| Property | Type | Setter | Description |
|---|---|---|---|
| desaturateForeground | boolean | SetForegroundDesaturated | Grayscale foreground |
| desaturateBackground | boolean | SetBackgroundDesaturated | Grayscale background |
| foregroundColor | color | Color | Foreground RGBA color |
| backgroundColor | color | SetBackgroundColor | Background RGBA color |
| width | number | SetRegionWidth | Region width |
| height | number | SetRegionHeight | Region height |
| orientation | string | SetOrientation | Progress direction |
| inverse | boolean | SetInverse | Invert progress |
| mirror | boolean | SetMirror | Horizontal mirror |
State Values
Reads these values from trigger state:state.texture- Override texture pathstate.value- Current valuestate.total- Maximum valuestate.duration- Time durationstate.expirationTime- End timestate.inverse- Invert progressstate.paused- Pause progress updates