Add function to dynamically resize map markers (#26)

* add function to resize

* link option to function
This commit is contained in:
Anthony Narkevicius
2023-01-11 14:15:05 -08:00
committed by GitHub
parent ed8bdf1118
commit be0b3c2788
2 changed files with 9 additions and 1 deletions
+7
View File
@@ -117,6 +117,13 @@ function MM:CreateMark(mapid,IsSendedMark,x,y)
end
end
function MM:ResizeAll()
for k, _ in pairs(ElvUI_ShowedMarkers) do
ElvUI_ShowedMarkers[k]:SetWidth(E.db.general.mapMarkers.iconSize)
ElvUI_ShowedMarkers[k]:SetHeight(E.db.general.mapMarkers.iconSize)
end
end
function MM:RefreshAll()
MM:HideAll();
local mapid = GetCurrentMapAreaID();