Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API StatusBar SetStatusBarTexture

Last wiki revision 2021-06-24

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]]])

  • 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.

Source

https://warcraft.wiki.gg/wiki/API_StatusBar_SetStatusBarTexture · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.