From ac2d266c2bb0d6879a01e8320d382e62ffcace2d Mon Sep 17 00:00:00 2001 From: Zhou Fang Date: Sat, 10 Aug 2024 21:16:03 +0900 Subject: [PATCH] feat: hide switch buttons in pet battle --- Modules/Quest/SwitchButtons.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Quest/SwitchButtons.lua b/Modules/Quest/SwitchButtons.lua index 0a4f253b..002f4a7c 100644 --- a/Modules/Quest/SwitchButtons.lua +++ b/Modules/Quest/SwitchButtons.lua @@ -6,7 +6,6 @@ local _G = _G local CreateFrame = CreateFrame local RegisterStateDriver = RegisterStateDriver -local UnregisterStateDriver = UnregisterStateDriver local GameTooltip = _G.GameTooltip @@ -164,6 +163,7 @@ function SB:CreateBar() frame:SetFrameStrata("LOW") frame:SetFrameLevel(5) frame:CreateBackdrop("Transparent") + RegisterStateDriver(frame, "visibility", "[petbattle] hide; show") self.bar = frame