small update

Please read the readme to see what has been changed.
This commit is contained in:
Meow
2026-01-27 07:32:16 +01:00
parent 123754b46d
commit 7c91ccf360
7 changed files with 64 additions and 11 deletions
+7 -4
View File
@@ -66,8 +66,6 @@ pfUI:RegisterModule("nameplates", "vanilla", function ()
local parentcount = 0
local platecount = 0
local registry = {}
local debuffdurations = C.appearance.cd.debuffs == "1" and true or nil
-- NEW: Cast event cache like Overhead.lua
local CastEvents = {}
local _, PlayerGUID = UnitExists("player")
@@ -300,8 +298,9 @@ pfUI:RegisterModule("nameplates", "vanilla", function ()
plate.debuffs[index].stacks:SetJustifyV("BOTTOM")
plate.debuffs[index].stacks:SetTextColor(1,1,0)
-- Read config for cooldown animation
-- Read config for cooldown animation and text
local cooldown_anim = tonumber(C.nameplates.debuffanim) or 0
local cooldown_text = tonumber(C.nameplates.debufftext) or 1
if pfUI.client <= 11200 then
-- Use Model frame with CooldownFrameTemplate for proper pie animation in Vanilla
@@ -313,6 +312,7 @@ pfUI:RegisterModule("nameplates", "vanilla", function ()
end
plate.debuffs[index].cd.pfCooldownStyleAnimation = cooldown_anim
plate.debuffs[index].cd.pfCooldownStyleText = cooldown_text
plate.debuffs[index].cd.pfCooldownType = "ALL"
end
@@ -999,8 +999,11 @@ pfUI:RegisterModule("nameplates", "vanilla", function ()
plate.debuffs[index].stacks:Hide()
end
if duration and timeleft and debuffdurations then
if duration and timeleft and C.nameplates.debufftimers == "1" then
local cooldown_anim = tonumber(C.nameplates.debuffanim) or 0
local cooldown_text = tonumber(C.nameplates.debufftext) or 1
plate.debuffs[index].cd.pfCooldownStyleAnimation = cooldown_anim
plate.debuffs[index].cd.pfCooldownStyleText = cooldown_text
plate.debuffs[index].cd:SetAlpha(cooldown_anim == 1 and 1 or 0)
plate.debuffs[index].cd:Show()
CooldownFrame_SetTimer(plate.debuffs[index].cd, GetTime() + timeleft - duration, duration, 1)