Tercioo / World-Quest-Tracker

Source code for the biggest world quest addon for World of Warcraft
22 stars 12 forks source link

Hide World Quest Tracker panel during pet battles #42

Open WildCard-25 opened 3 years ago

WildCard-25 commented 3 years ago

The tracker panel is visible during pet battles even though the quest panel and achievement panel hide themselves, these frames also hide themselves while in a vehicle.

In the WorldQuestTracker_Tracker.lua file after lines 287-289

local WorldQuestTrackerFrame = CreateFrame ("frame", "WorldQuestTrackerScreenPanel", UIParent, "BackdropTemplate")
WorldQuestTrackerFrame:SetSize (235, 500)
WorldQuestTrackerFrame:SetFrameStrata ("LOW") --thanks @p3lim on curseforge

add

RegisterStateDriver(WorldQuestTrackerFrame, "visibility", "[petbattle] [vehicleui] hide; show")
Tercioo commented 3 years ago

Got you, thank you!

------ Original Message ------ From: "WildCard-25" @.> To: "Tercioo/World-Quest-Tracker" @.> Cc: "Subscribed" @.***> Sent: 17-Mar-21 5:52:33 PM Subject: [Tercioo/World-Quest-Tracker] Hide World Quest Tracker panel during pet battles (#42)

The tracker panel is visible during pet battles even though the quest panel and achievement panel hide themselves, these frames also hide themselves while in a vehicle.

In the WorldQuestTracker_Tracker.lua file after lines 287-289

local WorldQuestTrackerFrame = CreateFrame ("frame", "WorldQuestTrackerScreenPanel", UIParent, "BackdropTemplate") WorldQuestTrackerFrame:SetSize (235, 500) WorldQuestTrackerFrame:SetFrameStrata ("LOW") --thanks @p3lim on curseforge

add

RegisterStateDriver(WorldQuestTrackerFrame, "visibility", "[petbattle] [vehicleui] hide; show")

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Tercioo/World-Quest-Tracker/issues/42, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACEVKWH7AQUNM3EH665TH4LTEEJBDANCNFSM4ZLKU2SA.