mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-07 14:10:01 +00:00
nameplates: add options to customize combat colors
This commit is contained in:
@@ -11,6 +11,7 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
|
||||
}
|
||||
|
||||
local combatstate = {
|
||||
-- gets overwritten by user config
|
||||
["NOTHREAT"] = { r = .7, g = .7, b = .2, a = 1 },
|
||||
["THREAT"] = { r = .7, g = .2, b = .2, a = 1 },
|
||||
["CASTING"] = { r = .7, g = .2, b = .7, a = 1 },
|
||||
@@ -463,6 +464,11 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
|
||||
local healthoffset = tonumber(C.nameplates.health.offset)
|
||||
local orientation = C.nameplates.verticalhealth == "1" and "VERTICAL" or "HORIZONTAL"
|
||||
|
||||
local c = combatstate -- load combat state colors
|
||||
c.THREAT.r, c.THREAT.g, c.THREAT.b, c.THREAT.a = GetStringColor(C.nameplates.combatthreat)
|
||||
c.NOTHREAT.r, c.NOTHREAT.g, c.NOTHREAT.b, c.NOTHREAT.a = GetStringColor(C.nameplates.combatnothreat)
|
||||
c.STUN.r, c.STUN.g, c.STUN.b, c.STUN.a = GetStringColor(C.nameplates.combatstun)
|
||||
|
||||
nameplate:SetWidth(plate_width)
|
||||
nameplate:SetHeight(plate_height)
|
||||
nameplate:SetPoint("TOP", parent, "TOP", 0, 0)
|
||||
|
||||
Reference in New Issue
Block a user