Lore archive · Warcraft Wiki, 2023 dump
API Cooldown SetSwipeColor
Last wiki revision 2019-06-29
Set the cooldown swipe to be a specific color. Cooldown:SetSwipeColor(r, g, b, [a]))
- r: number (0.0 to 1.0) - Redcomponent.
- 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.
- 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.
Source
https://warcraft.wiki.gg/wiki/API_Cooldown_SetSwipeColor · 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.