This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
I have the bar at the top of the screen but when i do pet battles it obscures half the petbattle window.In my addon i enabled auto hiding with... self:RegisterEvent("PET_BATTLE_OPENING_START"); self:RegisterEvent("PET_BATTLE_CLOSE");..followed by... if( event == "PET_BATTLE_OPENING_START" ) then self:Hide(); end if( event == "PET_BATTLE_CLOSE" ) then self:Show(); end...in the event handler.
If you can add something similar to recount that'll be great ;)
I did a quick hack fix which works so copied here for anyone else who is annoyed at this oversight (location and method could be improved)
At the end of the funtion Recount:CreateMainWindow() add...
Recount:RegisterEvent("PET_BATTLE_OPENING_START", function() Recount.MainWindow:Hide(); end)
Recount:RegisterEvent("PET_BATTLE_CLOSE", function() Recount.MainWindow:Show(); end)
thats it :)
To post a comment, please login or register a new account.