Merge pull request #1 from aron-w/main

fix(buffs): add support for Ascension WoW VanityBuffs frame
This commit is contained in:
Andrew
2025-10-09 10:56:51 -07:00
committed by GitHub
+50 -14
View File
@@ -1460,23 +1460,59 @@
<OnLoad> <OnLoad>
self.OnMAHook = function(self) self.OnMAHook = function(self)
self.attachedChildren = {} self.attachedChildren = {}
local b = _G["BuffFrame"]
b:SetPoint("TOPRIGHT", self, "TOPRIGHT", 0, 0) local consolidatedBuffs = _G["ConsolidatedBuffs"]
MovAny:LockPoint(b) if consolidatedBuffs then
tinsert(self.attachedChildren, b) consolidatedBuffs:SetPoint(
b = _G["ConsolidatedBuffs"] "TOPRIGHT",
b:SetPoint("TOPRIGHT", self, "TOPRIGHT", 0, 0) self,
MovAny:LockPoint(b) "TOPRIGHT",
tinsert(self.attachedChildren, b) 0, 0)
MovAny:LockPoint(consolidatedBuffs)
tinsert(self.attachedChildren, consolidatedBuffs)
end
local vanityBuffs = _G["VanityBuffs"]
if vanityBuffs then
vanityBuffs:SetPoint(
"TOPRIGHT",
consolidatedBuffs or self,
"TOPLEFT",
-6, 0)
MovAny:LockPoint(vanityBuffs)
tinsert(self.attachedChildren, vanityBuffs)
end
local buffFrame = _G["BuffFrame"]
if buffFrame then
local anchorFrame = vanityBuffs or consolidatedBuffs or self
buffFrame:SetPoint(
"TOPRIGHT",
anchorFrame,
"TOPLEFT",
-6, 0)
MovAny:LockPoint(buffFrame)
tinsert(self.attachedChildren, buffFrame)
end
self:Show() self:Show()
end end
self.OnMAPostReset = function(self) self.OnMAPostReset = function(self)
local b = _G["BuffFrame"]
MovAny:UnlockPoint(b) local buffFrame = _G["BuffFrame"]
b:SetPoint("TOPRIGHT", UIParent, "TOPRIGHT", -205, -13) MovAny:UnlockPoint(buffFrame)
b = _G["ConsolidatedBuffs"] buffFrame:SetPoint("TOPRIGHT", UIParent, "TOPRIGHT", -205, -13)
MovAny:UnlockPoint(b)
b:SetPoint("TOPRIGHT", UIParent, "TOPRIGHT", -180, -13) local consolidatedBuffs = _G["ConsolidatedBuffs"]
MovAny:UnlockPoint(consolidatedBuffs)
consolidatedBuffs:SetPoint("TOPRIGHT", UIParent, "TOPRIGHT", -180, -13)
local vanityBuffs = _G["VanityBuffs"]
if vanityBuffs then
MovAny:UnlockPoint(vanityBuffs)
vanityBuffs:SetPoint("TOPRIGHT", consolidatedBuffs, "TOPRIGHT", -6, 0)
end
self:Hide() self:Hide()
end end
</OnLoad> </OnLoad>