mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
Change method of hiding the player frame
This existing method worked fine for many years, but seems to have become inadequate in 9.2, likely due to this change that's restoring player frame visibility sometimes: 20f786e45b
Fixes #19 (Github)
This commit is contained in:
@ -1407,15 +1407,18 @@ end
|
||||
|
||||
|
||||
function PlayerHealth.prototype:ShowBlizz()
|
||||
PlayerFrame:Show()
|
||||
PlayerFrame:GetScript("OnLoad")(PlayerFrame)
|
||||
PlayerFrame:SetParent(self.OriginalPlayerFrameParent or UIParent)
|
||||
end
|
||||
|
||||
|
||||
function PlayerHealth.prototype:HideBlizz()
|
||||
PlayerFrame:Hide()
|
||||
if not self.PlayerFrameParent then
|
||||
self.PlayerFrameParent = CreateFrame("Frame")
|
||||
self.PlayerFrameParent:Hide()
|
||||
end
|
||||
|
||||
PlayerFrame:UnregisterAllEvents()
|
||||
self.OriginalPlayerFrameParent = PlayerFrame:GetParent()
|
||||
PlayerFrame:SetParent(self.PlayerFrameParent)
|
||||
end
|
||||
|
||||
function PlayerHealth.prototype:HideBlizzardParty()
|
||||
|
Reference in New Issue
Block a user