oUF

99.9k Downloads

Enhancement Request: Add parameter to oUF:Spawn() method to not hide blizzard unit on spawn.

runamonk opened this issue ยท 2 comments

commented

Enhancement request in forum post:
http://www.wowinterface.com/forums/showthread.php?t=56197

May I ask project manager and authors to officially add an extra parameter to Spawn function (as above) so that the developers with oUF could choose to disable Blizzard default unitframe or not

commented

You can do this in the layout without having to modify the oUF source:

    -- store and disable the method
    local orig = oUF.DisableBlizzard
    oUF.DisableBlizzard = nop
     
    -- spawn your frames
    oUF:Spawn('player')
     
    -- re-enable the method
    oUF.DisableBlizzard = orig
commented

Yup, I just wish I had thought of overriding the original like that. I guess this can be closed out. :)