Cooldown:SetSwipeColor
Jump to navigation
Jump to search
Set the cooldown swipe to be a specific color.
Cooldown:SetSwipeColor(colorR, colorG, colorB [, a])
Arguments
- colorR
- number - Redcomponent.
- colorG
- number - Green component.
- colorB
- number - Blue component.
- a
- number?
= 1.0
- Alpha component (1.0 is opaque, 0.0 is transparent).
Details
- If no SwipeTexture is assigned through XML, both SetSwipeTexture and SetSwipeColor need to be called for the swipe to show up. To achieve a solid square using the giving color, call SetSwipeTexture with an empty string ("") or 0 as its texture path.