fix: stabilize minimap range cutoff and update release docs

This commit is contained in:
Xurkon
2026-06-03 06:05:55 -05:00
parent 93cfc17586
commit 4b7c295210
22 changed files with 198 additions and 77 deletions
@@ -510,6 +510,21 @@ function QuestieOptions.tabs.icons:Initialize()
QuestieFramePool:UpdateColorConfig(true, value)
end,
},
minimapIconRangeCutoff = {
type = "range",
order = 4.35,
name = function() return l10n('Minimap Icon Range Cutoff'); end,
desc = function() return l10n('How far away minimap icons can remain visible.\n(Default: %s)', optionsDefaults.profile.minimapIconRangeCutoff); end,
width = 3.1,
min = 25,
max = 200,
step = 5,
disabled = function() return ((not Questie.db.profile.enabled) or (not Questie.db.profile.enableMiniMapIcons)); end,
get = function(info) return QuestieOptions:GetProfileValue(info); end,
set = function (info, value)
QuestieOptions:SetProfileValue(info, value)
end,
},
fadeLevel = {
type = "range",
order = 4.4,
+11 -3
View File
@@ -102,10 +102,18 @@ end
-- set option value
function QuestieOptions:SetProfileValue(info, value)
if debug and Questie.db.profile[info[#info]] ~= value then
Questie:Debug(Questie.DEBUG_SPAM, "DEBUG: global option", info[#info], "changed from '" .. tostring(Questie.db.profile[info[#info]]) .. "' to '" .. tostring(value) .. "'")
local key = info[#info]
if debug and Questie.db.profile[key] ~= value then
Questie:Debug(Questie.DEBUG_SPAM, "DEBUG: global option", key, "changed from '" .. tostring(Questie.db.profile[key]) .. "' to '" .. tostring(value) .. "'")
end
Questie.db.profile[key] = value
if key == "minimapIconRangeCutoff" then
local QuestieMap = QuestieLoader:ImportModule("QuestieMap")
if QuestieMap and QuestieMap.RefreshMinimapIconVisibility then
QuestieMap:RefreshMinimapIconVisibility()
end
end
Questie.db.profile[info[#info]] = value
end
function QuestieOptions:ClusterRedraw()
+2 -1
View File
@@ -20,7 +20,8 @@ function QuestieOptionsDefaults:Load()
objectScale = 1,
globalScale = 0.6,
globalMiniMapScale = 0.7,
fadeLevel = 20,
minimapIconRangeCutoff = 100,
fadeLevel = 100,
fadeOverPlayer = true,
fadeOverPlayerLevel = 0.5,
fadeOverPlayerDistance = 5,