mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-24 13:00:50 +00:00
some fixes for unitframes shown if pfui unitframes are active.
This commit is contained in:
@@ -46,6 +46,18 @@ pfUI:RegisterSkin("Barbershop", "vanilla", function ()
|
|||||||
SkinButton(BarbershopFrameCancelButton)
|
SkinButton(BarbershopFrameCancelButton)
|
||||||
SkinButton(BarbershopFrameResetButton)
|
SkinButton(BarbershopFrameResetButton)
|
||||||
|
|
||||||
|
-- Turtle WoW's Barbershop calls PlayerFrame:Show() and TargetFrame:Show()
|
||||||
|
-- on open/close. pfUI manages its own frames so we noop those calls.
|
||||||
|
if C.unitframes.disable ~= "1" then
|
||||||
|
if PlayerFrame then
|
||||||
|
PlayerFrame:Hide()
|
||||||
|
PlayerFrame.Show = function() return end
|
||||||
|
end
|
||||||
|
if TargetFrame then
|
||||||
|
TargetFrame.Show = function() return end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
-- Fix: disable TargetFrameDebuff OnEnter scripts while barbershop is open
|
-- Fix: disable TargetFrameDebuff OnEnter scripts while barbershop is open
|
||||||
-- to prevent SetUnitDebuff crash (TargetFrame is hidden but scripts remain active)
|
-- to prevent SetUnitDebuff crash (TargetFrame is hidden but scripts remain active)
|
||||||
local savedOnEnter = {}
|
local savedOnEnter = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user