Originally Posted by 10leej
Honestly I was using what haste used in oUF_Classic for auras at the time.
|
Yeah, I've seen him (and Tekkub) anchor/size things that way, and I really don't understand why. It seems completely illogical, and also inefficient since the same result could be achieved more logically with fewer function calls.
Originally Posted by 10leej
Problem is that i'm not sure I'm spawning the boss frames right because their not showing with phanx's test code.
|
they're*
Code:
for index = 1, MAX_BOSS_FRAMES do
-- (1) Unit tokens are lowercase. This should be "boss"..index
-- not "Boss"..index. In practice, most/all functions don't
-- actually care, but you should do it right anyway.
local boss = self:Spawn('Boss' .. index)
if(index == 1) then
boss:SetPoint('TOPRIGHT', BOTTOMRIGHT, 'BOTTOM', -5, -50)
else
boss:SetPoint('TOP', _G['oUF_BobBoss' .. index - 1], 'BOTTOM', 0, -6)
end
-- (2) You don't need to do this. oUF already
-- handles disabling Blizzard frames.
local blizzardFrames = _G['Boss' .. index .. 'TargetFrame']
blizzardFrames:UnregisterAllEvents()
blizzardFrames:Hide()
end
Other than those minor issues, are the frames actually being created?
/dump oUF_BobBoss4 and "EXISTS" or "DOES NOT EXIST"
You might also want to add some
print statements in your code so you can see what's happening as it happens.