mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-22 15:46:56 +00:00
nameplates: always update non-target transparency
This commit is contained in:
@@ -443,13 +443,6 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
|
||||
-- always make sure to keep plate visible
|
||||
plate:Show()
|
||||
|
||||
-- set plate alpha
|
||||
if target then
|
||||
plate:SetAlpha(1)
|
||||
else
|
||||
plate:SetAlpha(tonumber(C.nameplates.notargalpha))
|
||||
end
|
||||
|
||||
if target and C.nameplates.targetglow == "1" then
|
||||
plate.glow:Show() else plate.glow:Hide()
|
||||
end
|
||||
@@ -573,6 +566,14 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
|
||||
local target = UnitExists("target") and frame:GetAlpha() == 1 or nil
|
||||
local mouseover = UnitExists("mouseover") and original.glow:IsShown() or nil
|
||||
|
||||
-- set non-target plate alpha
|
||||
if target then
|
||||
nameplate:SetAlpha(1)
|
||||
else
|
||||
frame:SetAlpha(.95)
|
||||
nameplate:SetAlpha(tonumber(C.nameplates.notargalpha))
|
||||
end
|
||||
|
||||
-- use timer based updates
|
||||
if not nameplate.tick or nameplate.tick < GetTime() then
|
||||
nameplate.tick = GetTime() + .2
|
||||
|
||||
Reference in New Issue
Block a user