Modules/Maps: Cleanup Text on Map Markers

This commit is contained in:
Andrew6810
2023-01-07 04:07:37 -07:00
parent 5433613833
commit 9a4ec54a5a
2 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -27,7 +27,7 @@ function MM:SendMark(text, distribution)
end
local pname = UnitName("player");
function MM:ReseiveMark(text, distribution, target)
function MM:RecieveMark(text, distribution, target)
local success,mapid, x, y, who = MM:Deserialize(text);
mapid = tonumber(mapid)
@@ -93,7 +93,7 @@ function MM:CreateMark(mapid,IsSendedMark,x,y)
marker:EnableMouse(true);
marker:HookScript("OnEnter", function(self)
GameTooltip:SetOwner(self, "ANCHOR_LEFT")
GameTooltip:SetText("SHIFT + ПКМ убрать метку", 1, 1, 1)
GameTooltip:SetText("SHIFT + Middle click to remove.", 1, 1, 1)
GameTooltip:Show()
end)
marker:SetScript("OnLeave", function()
@@ -153,7 +153,7 @@ function MM:Initialize()
else
_SetItemRef(link, textref, button, chatFrame);
end
end
end
WorldMapButton:RegisterForClicks("LeftButtonDownm", "RightButtonDown","MiddleButtonDown");
WorldMapButton:HookScript("OnClick",function(self,click)
@@ -174,7 +174,7 @@ function MM:Initialize()
MM.imFrame:SetScript("OnEvent", EventHandler);
if E.db.general.mapMarkers.showRaidMarkers then
MM:RegisterComm(prefix, MM.ReseiveMark);
MM:RegisterComm(prefix, MM.RecieveMark);
end
end