845 - Auto-hide on pet battles
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 ;)
| User | When | Change |
|---|---|---|
| Bynun | Feb 11, 2013 at 19:20 UTC | Create |
- 1 comment
- 1 comment
Facts
- Last updated
- Oct 14, 2013
- Reported
- Feb 11, 2013
- Status
- New - Issue has not had initial review yet.
- Type
- Enhancement - A change which is intended to better the project in some way
- Priority
- Medium - Normal priority.
- Votes
- 1
- Reply
- #1
Bynun Feb 15, 2013 at 22:22 UTC - 0 likesI 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 :)