WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   Bongos fix for BC 2.0.3 (https://www.wowinterface.com/forums/showthread.php?t=7379)

Devla 12-13-06 10:28 AM

Bongos fix for BC 2.0.3
 
1 Attachment(s)
Fix for Bongos:

Change line 40 of \Bongos_ActionBar\core\button.lua:

from:
Quote:

CreateFrame("Model", name .. "Cooldown", button, "CooldownFrameTemplate")
to:
Quote:

CreateFrame("Cooldown", name .. "Cooldown", button, "CooldownFrameTemplate")
Tested and works

For the lazy, see attached file

Enjoy

Mazzlefizz 12-13-06 11:32 AM

Thanks for the tip, Devla :D

EDIT: Is this for BC servers only?

Devla 12-13-06 12:42 PM

For BC/Live dual compatibility, I replaced line 40 with the following:

Code:

        local oldandbusted = _G.GetBuildInfo() == '2.0.1'
            if oldandbusted then
                CreateFrame("Model", name .. "Cooldown", button, "CooldownFrameTemplate")
                    else
                CreateFrame("Cooldown", name .. "Cooldown", button, "CooldownFrameTemplate")
            end


Tuller 12-13-06 12:58 PM

Code:

               
if GetBuildInfo() == '2.0.1' then
        CreateFrame("Model", name .. "Cooldown", button, "CooldownFrameTemplate")
else
        CreateFrame("Cooldown", name .. "Cooldown", button, "CooldownFrameTemplate")
end

My fix is awesomer :P


All times are GMT -6. The time now is 02:53 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI