The API is no longer being updated here until further notice. |
Sets the texture of the StatusBar object (which is used when filling the portion between the StatusBar's Minimum value and the Current value).
StatusBar:SetStatusBarTexture(texture or "texture" or fileDataID or nil [, "layer"[, subLayer]]) StatusBar:SetStatusBarTexture(r, g, b[, a[, "layer"[, subLayer]]])
Arguments[]
- texture or "texture" or fileDataID
- Texture or string or number - The texture object or file path or FileID.
- r, g, b, a
-
- r
- Number (0.0 to 1.0) - Red component.
- g
- Number (0.0 to 1.0) - Green component.
- b
- Number (0.0 to 1.0) - Blue component.
- a
- Number (0.0 to 1.0) - Alpha component (1.0 is opaque, 0.0 is transparent). The default value is 1.0.
- layer
- string - The layer to use.
- subLayer
- number - The Sublayer to use.
Patch changes[]
- Patch 8.2.0 (2019-06-25): Added support for FileIDs.