IceHUD

173 - Hide during Pet Battles

What is the enhancement in mind? How should it look and feel?

I would like an option for IceHud to hide completely during pet battles.

Please provide any additional information below.

User When Change
Parnic Oct 26, 2013 at 16:18 UTC Changed status from New to Fixed
Gjerdesmett Jun 04, 2013 at 13:14 UTC Create

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

  • 4 comments
  • Avatar of Parnic Parnic Oct 26, 2013 at 16:18 UTC - 0 likes

    r946

  • Avatar of Parnic Parnic Sep 30, 2013 at 18:43 UTC - 0 likes

    @esiemiat: Go

    Thanks! But I wonder if it makes more sense to make this an alpha setting. Though there's plenty there already.

  • Avatar of esiemiat esiemiat Sep 30, 2013 at 16:24 UTC - 0 likes

    Here is the code to hide the frame during a PetBattle. I did some very basic testing of this but it should work in all circumstances.

    Add these line to the IceCore.prototype:Enable function:

    self.IceHUDFrame:RegisterEvent("PET_BATTLE_OPENING_START")
    self.IceHUDFrame:RegisterEvent("PET_BATTLE_OVER")
    self.IceHUDFrame:SetScript("OnEvent", function(self, event, ...)
    	if (event == "PET_BATTLE_OPENING_START") then
    		self:Hide()
    	elseif (event == "PET_BATTLE_OVER") then
    		self:Show()
    	end
    end)
    

    Add these line to the IceCore.prototype:Disable function:

    self.IceHUDFrame:UnregisterEvent("PET_BATTLE_OPENING_START")
    self.IceHUDFrame:UnregisterEvent("PET_BATTLE_OVER")
    self.IceHUDFrame:SetScript("OnEvent", nil)
    
    Last edited Sep 30, 2013 by esiemiat
  • Avatar of Parnic Parnic Jun 04, 2013 at 17:25 UTC - 0 likes

    I most likely won't have time to do this, but I always accept user submissions if you would like to code the feature.

  • 4 comments

Facts

Last updated
Oct 26, 2013
Reported
Jun 04, 2013
Status
Fixed - Developer made requested changes. QA should verify.
Type
Enhancement - A change which is intended to better the project in some way
Priority
Medium - Normal priority.
Votes
1

Reported by

Possible assignees