From 9a4ec54a5a7ddf1081ea0fe85581f7ffde535058 Mon Sep 17 00:00:00 2001 From: Andrew6810 <16847730+andrew6180@users.noreply.github.com> Date: Sat, 7 Jan 2023 04:07:37 -0700 Subject: [PATCH] Modules/Maps: Cleanup Text on Map Markers --- ElvUI/Modules/Maps/MapMarkers.lua | 8 ++++---- ElvUI_OptionsUI/Maps.lua | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ElvUI/Modules/Maps/MapMarkers.lua b/ElvUI/Modules/Maps/MapMarkers.lua index d41c7ba..185efe4 100644 --- a/ElvUI/Modules/Maps/MapMarkers.lua +++ b/ElvUI/Modules/Maps/MapMarkers.lua @@ -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 diff --git a/ElvUI_OptionsUI/Maps.lua b/ElvUI_OptionsUI/Maps.lua index 129c8e1..d6717fd 100644 --- a/ElvUI_OptionsUI/Maps.lua +++ b/ElvUI_OptionsUI/Maps.lua @@ -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,