Originally Posted by Fizzlemizz
I dont' see a frame:ClearAllPoints()
|
/doh
Originally Posted by Vrul
You can make that handle future classes better:
Code:
local party = CreateFrame('Frame')
party:SetScript('OnEvent', function(self, event)
self:UnregisterEvent(event)
local function UpdatePosition(self)
local _, _, _, _, role = GetSpecializationInfo(GetSpecialization())
self:ClearAllPoints()
self:SetPoint(unpack(cfg.group[role ~= 'HEALER' and "position" or "healposition"]))
end
UpdatePosition(self)
self:SetScript('OnEvent', UpdatePosition)
self:RegisterUnitEvent('PLAYER_SPECIALIZATION_CHANGED', 'player')
end)
party:RegisterEvent('PLAYER_ENTERING_WORLD')
|
That definately looks better