Skip to content

Commit

Permalink
feat: hide switch buttons in pet battle
Browse files Browse the repository at this point in the history
  • Loading branch information
fang2hou committed Aug 10, 2024
1 parent 8cfa304 commit ac2d266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/Quest/SwitchButtons.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ local _G = _G

local CreateFrame = CreateFrame
local RegisterStateDriver = RegisterStateDriver
local UnregisterStateDriver = UnregisterStateDriver

local GameTooltip = _G.GameTooltip

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit ac2d266

Please sign in to comment.