cooldown: align text to the actual cooldown frame

This commit is contained in:
shagu
2020-10-04 18:33:34 +02:00
parent abb82c7090
commit b558cf7bc2
+1 -1
View File
@@ -35,7 +35,7 @@ pfUI:RegisterModule("cooldown", "vanilla:tbc", function ()
local function pfCreateCoolDown(cooldown, start, duration)
cooldown.pfCooldownText = CreateFrame("Frame", "pfCooldownFrame", cooldown:GetParent())
cooldown.pfCooldownText:SetAllPoints(cooldown:GetParent())
cooldown.pfCooldownText:SetAllPoints(cooldown)
cooldown.pfCooldownText:SetFrameLevel(cooldown:GetParent():GetFrameLevel() + 1)
cooldown.pfCooldownText.text = cooldown.pfCooldownText:CreateFontString("pfCooldownFrameText", "OVERLAY")