Thread Tools Display Modes
03-30-13, 03:19 PM   #1
10leej
A Molten Giant
 
10leej's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2011
Posts: 583
Shows Boss Frames when outside combat

Is there anyway we can show the boss frames out of combat or have some mob attack my warrior for hours at a time?
__________________
Tweets YouTube Website
  Reply With Quote
03-30-13, 11:50 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
I use this code to test my frames:

Code:
local frames = {
    oUFPhanxBoss1,
    oUFPhanxBoss2,
    oUFPhanxBoss3,
    oUFPhanxBoss4,
    oUFPhanxBoss5,
}

function MakeFakes()
    for _, f in ipairs(frames) do
        if not f.__realunit then
            f.__realunit = f:GetAttribute("unit") or f.unit
            f:SetAttribute("unit", "player")
            f.unit = "player"
            f:Show()
        end
    end
end

function UnmakeFakes()
    for _, f in ipairs(frames) do
        if f.__realunit then
            f:SetAttribute("unit", f.__realunit)
            f.unit = f.__realunit
            f.__realunit = nil
            f:Hide()
        end
    end
end
Use "/run MakeFakes()" and "/run UnmakeFakes()" in-game to toggle.

However, this won't help you if you're trying to test the actual bossN unitIDs... if you need to do that, you'll have to find a low-level encounter with multiple bosses where you can just stand there and make changes and reload your UI while the bosses are hitting you.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Shows Boss Frames when outside combat


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off