minimap: add option to set minimap arrow scaling

This commit is contained in:
shagu
2025-06-14 19:11:59 +02:00
parent dc15f869ae
commit 124dcf2e8f
3 changed files with 19 additions and 1 deletions
+16
View File
@@ -38,6 +38,22 @@ pfUI:RegisterModule("minimap", "vanilla:tbc", function ()
Minimap:SetWidth(size)
Minimap:SetHeight(size)
-- vanilla+tbc: do the best to detect the minimap arrow
local arrowscale = tonumber(C.appearance.minimap.arrowscale)
local minimaparrow = ({Minimap:GetChildren()})[9]
for k, v in pairs({Minimap:GetChildren()}) do
if v:IsObjectType("Model") and not v:GetName() then
if string.find(strlower(v:GetModel()), "interface\\minimap\\minimaparrow") then
minimaparrow = v
break
end
end
end
if minimaparrow then
minimaparrow:SetScale(arrowscale)
end
end
pfUI.minimap:UpdateConfig()