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
+16 -9
View File
@@ -254,7 +254,15 @@ end
local function _GetArrowPreviewPath()
local style = _GetArrowStyle()
return style.previewPath
if not style then
return nil
end
if style.previewPath and (type(DoesFileExist) ~= "function" or DoesFileExist(style.previewPath)) then
return style.previewPath
end
return style.texturePath
end
local function _IsArrowSpriteSheet()
@@ -355,13 +363,9 @@ local function _UpdateObjectiveFramePosition()
end
if _IsObjectiveAttached() and arrowFrame then
local style = arrowFrame._arrowStyle or _GetArrowStyle()
local inset = (style and style.visualBottomInset) or 0
local scale = _GetArrowScale()
local visibleBottomOffset = math.floor(inset * scale + 0.5)
local gap = _GetObjectiveGap()
objectiveFrame:ClearAllPoints()
objectiveFrame:SetPoint("TOP", arrowFrame, "BOTTOM", 0, gap - visibleBottomOffset)
objectiveFrame:SetPoint("TOP", arrowFrame, "BOTTOM", 0, gap)
objectiveFrame._useDefaultPosition = false
return
end
@@ -810,9 +814,12 @@ EnsureArrowFrame = function()
local dist = HBD:GetWorldDistance(targetInstance, playerX, playerY, targetX, targetY)
if dist then
local area = 1
local alpha = dist - area
alpha = alpha > 1 and 1 or alpha
alpha = alpha < 0.5 and 0.5 or alpha
local alpha = 1
if dist <= area then
alpha = dist / area
alpha = alpha > 1 and 1 or alpha
alpha = alpha < 0.5 and 0.5 or alpha
end
local texalpha = (1 - alpha) * 2
texalpha = texalpha > 1 and 1 or texalpha
+19 -61
View File
@@ -13,9 +13,9 @@ QuestieArrowAssets.styles = {
displayWidth = 71,
displayHeight = 96,
visualBottomInset = 0,
textureCoordLeft = 0.187500,
textureCoordRight = 0.812500,
textureCoordTop = 0.078125,
textureCoordLeft = 0.195312,
textureCoordRight = 0.808594,
textureCoordTop = 0.093750,
textureCoordBottom = 0.917969,
},
["arrow2"] = {
@@ -28,7 +28,7 @@ QuestieArrowAssets.styles = {
visualBottomInset = 0,
textureCoordLeft = 0.082031,
textureCoordRight = 0.917969,
textureCoordTop = 0.097656,
textureCoordTop = 0.101562,
textureCoordBottom = 0.898438,
},
["arrow3"] = {
@@ -36,13 +36,13 @@ QuestieArrowAssets.styles = {
texture = "Icons\\Arrows\\Arrow3.tga",
preview = "Icons\\Arrows\\Arrow3_preview.tga",
mode = "image",
displayWidth = 65,
displayWidth = 66,
displayHeight = 96,
visualBottomInset = 0,
textureCoordLeft = 0.214844,
textureCoordRight = 0.785156,
textureCoordTop = 0.078125,
textureCoordBottom = 0.914062,
textureCoordLeft = 0.218750,
textureCoordRight = 0.781250,
textureCoordTop = 0.093750,
textureCoordBottom = 0.917969,
},
["arrow4"] = {
label = "Arrow 4",
@@ -52,21 +52,21 @@ QuestieArrowAssets.styles = {
displayWidth = 68,
displayHeight = 96,
visualBottomInset = 0,
textureCoordLeft = 0.203125,
textureCoordRight = 0.796875,
textureCoordTop = 0.078125,
textureCoordBottom = 0.917969,
textureCoordLeft = 0.347656,
textureCoordRight = 0.648438,
textureCoordTop = 0.289062,
textureCoordBottom = 0.714844,
},
["hordearrow"] = {
label = "Horde Arrow",
texture = "Icons\\Arrows\\HordeArrow.tga",
preview = "Icons\\Arrows\\HordeArrow_preview.tga",
mode = "image",
displayWidth = 84,
displayWidth = 120,
displayHeight = 96,
visualBottomInset = 0,
textureCoordLeft = 0.207031,
textureCoordRight = 0.789062,
textureCoordLeft = 0.078125,
textureCoordRight = 0.917969,
textureCoordTop = 0.078125,
textureCoordBottom = 0.917969,
},
@@ -75,50 +75,11 @@ QuestieArrowAssets.styles = {
texture = "Icons\\Arrows\\AllianceArrow.tga",
preview = "Icons\\Arrows\\AllianceArrow_preview.tga",
mode = "image",
displayWidth = 116,
displayWidth = 177,
displayHeight = 96,
visualBottomInset = 0,
textureCoordLeft = 0.222656,
textureCoordRight = 0.773438,
textureCoordTop = 0.078125,
textureCoordBottom = 0.917969,
},
["minimal1"] = {
label = "Waypoint 1",
texture = "Icons\\Arrows\\Minimal1.tga",
preview = "Icons\\Arrows\\Minimal1_preview.tga",
mode = "image",
displayWidth = 68,
displayHeight = 96,
visualBottomInset = 0,
textureCoordLeft = 0.203125,
textureCoordRight = 0.796875,
textureCoordTop = 0.078125,
textureCoordBottom = 0.917969,
},
["minimal2"] = {
label = "Waypoint 2",
texture = "Icons\\Arrows\\Minimal2.tga",
preview = "Icons\\Arrows\\Minimal2_preview.tga",
mode = "image",
displayWidth = 74,
displayHeight = 96,
visualBottomInset = 0,
textureCoordLeft = 0.175781,
textureCoordRight = 0.820312,
textureCoordTop = 0.078125,
textureCoordBottom = 0.917969,
},
["minimal3"] = {
label = "Waypoint 3",
texture = "Icons\\Arrows\\Minimal3.tga",
preview = "Icons\\Arrows\\Minimal3_preview.tga",
mode = "image",
displayWidth = 83,
displayHeight = 96,
visualBottomInset = 0,
textureCoordLeft = 0.132812,
textureCoordRight = 0.863281,
textureCoordLeft = 0.078125,
textureCoordRight = 0.917969,
textureCoordTop = 0.078125,
textureCoordBottom = 0.917969,
},
@@ -144,9 +105,6 @@ QuestieArrowAssets.order = {
"arrow4",
"hordearrow",
"alliancearrow",
"minimal1",
"minimal2",
"minimal3",
"arrowold",
}