Lore archive · Warcraft Wiki, 2023 dump
API GetThreatStatusColor
Last wiki revision 2022-08-01
Returns the color for a threat status. r, g, b = GetThreatStatusColor(status)
- status: - Usually the return of
- r: - a value between 0 and 1 for the red content of the color
- g: - a value between 0 and 1 for the green content of the color
- b: - a value between 0 and 1 for the blue content of the color
- Usually returns one of the following:
- 1: 1.00, 1.00, 0.47 (yellow)
- 2: 1.00, 0.60, 0.00 (orange)
- 3: 1.00, 0.00, 0.00 (red)
- Other values observed in the wild, but these situations do not occur in the default UI:
- 0 or nil: 0.69, 0.69, 0.69 (grey)
- -1: 1.00, 1.00, 1.00 (white)
Prints a description of the player's threat situation to the chat frame, colored appropriately. e.g.
Results in one of the following. <font color="AFAFAF">0: You are low on threat. <font color="FFFF77">1: You are overnuking. <font color="FF9900">2: You are losing threat. <font color="FF0000">3: You are tanking securely. nil: You are not on their threat table.
- API UnitDetailedThreatSituation
Categories
- Interface customization
Source
https://warcraft.wiki.gg/wiki/API_GetThreatStatusColor · 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.