Cooldown:SetSwipeTexture
Jump to navigation
Jump to search
Assigns a texture for the swipe of the cooldown.
Cooldown:SetSwipeTexture(texture [, colorR, colorG, colorB, colorA])
Arguments
- texture
- string : FileAsset - Path or FileID to a texture image. Set to an empty string
""
for creating a solid color texture. - colorR
- number? - Triggered by passing an empty string to create a solid color texture like Texture:SetColorTexture()
- colorG
- number?
- colorB
- number?
- colorA
- number?
Details
- If no SwipeTexture is assigned through XML, both SetSwipeTexture and Cooldown:SetSwipeColor() need to be called for the swipe to show up.
- The provided texture will be used as is, not as a mask. To use alpha, the texture itself needs to contain alpha information. (Not applicable to solid color textures.)
Patch changes
- Patch 6.0.2 (2014-10-14): Added.