Commit 8a223292 authored by Simpy's avatar Simpy 🐹
Browse files

option to hide objective tracker even during keystone runs (off by default)

parent 6009b9c9
......@@ -75,9 +75,13 @@ function B:MoveObjectiveFrame()
ObjectiveTrackerFrame.AutoHider:SetAttribute('_onstate-objectiveHider', 'if newstate == 1 then self:Hide() else self:Show() end')
ObjectiveTrackerFrame.AutoHider:SetScript('OnHide', function()
if not ObjectiveTrackerFrame.collapsed then
local _, _, difficultyID = GetInstanceInfo()
if difficultyID and difficultyID ~= 8 then -- ignore hide in keystone runs
if E.db.general.objectiveFrameAutoHideInKeystone then
_G.ObjectiveTracker_Collapse()
else
local _, _, difficultyID = GetInstanceInfo()
if difficultyID and difficultyID ~= 8 then -- ignore hide in keystone runs
_G.ObjectiveTracker_Collapse()
end
end
end
end)
......
......@@ -23,6 +23,7 @@ P.general = {
enhancedPvpMessages = true,
objectiveFrameHeight = 480,
objectiveFrameAutoHide = true,
objectiveFrameAutoHideInKeystone = false,
bonusObjectivePosition = 'LEFT',
talkingHeadFrameScale = 0.9,
talkingHeadFrameBackdrop = false,
......
......@@ -861,8 +861,15 @@ E.Options.args.general = {
disabled = function() return IsAddOnLoaded('!KalielsTracker') end,
set = function(info, value) E.db.general.objectiveFrameAutoHide = value; Blizzard:SetObjectiveFrameAutoHide(); end,
},
objectiveFrameHeight = {
objectiveFrameAutoHideInKeystone = {
order = 32,
type = 'toggle',
name = L["Hide In Keystone"],
hidden = function() return not E.db.general.objectiveFrameAutoHide end,
set = function(info, value) E.db.general.objectiveFrameAutoHideInKeystone = value end,
},
objectiveFrameHeight = {
order = 33,
type = 'range',
name = L["Objective Frame Height"],
desc = L["Height of the objective tracker. Increase size to be able to see more objectives."],
......@@ -870,7 +877,7 @@ E.Options.args.general = {
set = function(info, value) E.db.general.objectiveFrameHeight = value; Blizzard:SetObjectiveFrameHeight(); end,
},
bonusObjectivePosition = {
order = 33,
order = 34,
type = 'select',
name = L["Bonus Reward Position"],
desc = L["Position of bonus quest reward frame relative to the objective tracker."],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment