make hidden frames visible while dragging

This commit is contained in:
Eric Mauser
2016-07-10 19:48:05 +02:00
parent 2831d319e9
commit 5b7fd2c42d
4 changed files with 37 additions and 5 deletions
+9 -1
View File
@@ -33,7 +33,15 @@ pfUI:RegisterModule("pet", function ()
pfUI.uf.pet:RegisterEvent("UNIT_MAXFOCUS")
pfUI.uf.pet:SetScript("OnEvent", function(arg1)
if UnitExists("pet") then pfUI.uf.pet:Show() else pfUI.uf.pet:Hide() end
if UnitExists("pet") then
pfUI.uf.pet:Show()
elseif (pfUI.gitter and pfUI.gitter:IsShown()) then
pfUI.uf.pet:Show()
return
else
pfUI.uf.pet:Hide()
end
local hp, hpmax = UnitHealth("pet"), UnitHealthMax("pet")
local power, powermax = UnitMana("pet"), UnitManaMax("pet")