Auto-hide on pet battles #845

  • New
  • Enhancment
Assigned to _ForgeUser57836
  • Forge_User_50864970 created this issue Feb 11, 2013

    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...
    ..followed by...
        if( event == "PET_BATTLE_OPENING_START" )    then    self:Hide();        end
        if( event == "PET_BATTLE_CLOSE" )            then    self:Show();    end the event handler.

    If you can add something similar to recount that'll be great ;)

  • Forge_User_50864970 added the tags New Enhancment Feb 11, 2013
  • Forge_User_50864970 posted a comment Feb 15, 2013

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

    Edited Feb 15, 2013

To post a comment, please login or register a new account.