mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-29 18:56:02 +00:00
nameplates: use predefined colors for borders
This commit is contained in:
@@ -647,13 +647,13 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
|
||||
elseif target and C.nameplates.targethighlight == "1" then
|
||||
plate.health.backdrop:SetBackdropBorderColor(plate.health.hlr, plate.health.hlg, plate.health.hlb, plate.health.hla)
|
||||
elseif C.nameplates.outfriendlynpc == "1" and unittype == "FRIENDLY_NPC" then
|
||||
plate.health.backdrop:SetBackdropBorderColor(.2,.7,.3,1)
|
||||
plate.health.backdrop:SetBackdropBorderColor(unpack(unitcolors[unittype]))
|
||||
elseif C.nameplates.outfriendly == "1" and unittype == "FRIENDLY_PLAYER" then
|
||||
plate.health.backdrop:SetBackdropBorderColor(.2,.3,.7,1)
|
||||
plate.health.backdrop:SetBackdropBorderColor(unpack(unitcolors[unittype]))
|
||||
elseif C.nameplates.outneutral == "1" and strfind(unittype, "NEUTRAL") then
|
||||
plate.health.backdrop:SetBackdropBorderColor(.7,.7,.2,1)
|
||||
plate.health.backdrop:SetBackdropBorderColor(unpack(unitcolors[unittype]))
|
||||
elseif C.nameplates.outenemy == "1" and strfind(unittype, "ENEMY") then
|
||||
plate.health.backdrop:SetBackdropBorderColor(.7,.2,.3,1)
|
||||
plate.health.backdrop:SetBackdropBorderColor(unpack(unitcolors[unittype]))
|
||||
else
|
||||
plate.health.backdrop:SetBackdropBorderColor(er,eg,eb,ea)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user