Modules/Maps: Cleanup Text on Map Markers
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -137,15 +137,15 @@ E.Options.args.maps = {
|
||||
order = 1,
|
||||
type = "toggle",
|
||||
name = L["Enable"],
|
||||
desc = L["Map Markers on map"],
|
||||
desc = L["Allows Map Markers to be created by middle clicking (Mouse3) on the world map.\nMarkers are automatically shared with raid members."],
|
||||
get = function(info) return E.db.general.mapMarkers[info[#info]] end,
|
||||
set = function(info, value) E.db.general.mapMarkers[info[#info]] = value E:StaticPopup_Show("PRIVATE_RL") end
|
||||
},
|
||||
showRaidMarkers = {
|
||||
order = 2,
|
||||
type = "toggle",
|
||||
name = L["Reseive Raid Markers from raid"],
|
||||
desc = L["Reseive Raid Markers from raid"],
|
||||
name = L["Allow Map Markers from Raid Members"],
|
||||
desc = L["Allows Raid Members to send you Map Markers"],
|
||||
get = function(info) return E.db.general.mapMarkers[info[#info]] end,
|
||||
set = function(info, value) E.db.general.mapMarkers[info[#info]] = value E:StaticPopup_Show("PRIVATE_RL") end,
|
||||
disabled = function() return not E.db.general.mapMarkers.enable end,
|
||||
|
||||
Reference in New Issue
Block a user