Recount

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

You must login to post a comment. Don't have an account? Register to get one!

  • 1 comment
  • Avatar of Bynun Bynun Feb 15, 2013 at 22:22 UTC - 0 likes

    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 :)

    Last edited Feb 15, 2013 by Bynun
  • 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

Reported by

Possible assignees