Commit 1e5e8201 authored by Darth Predator's avatar Darth Predator
Browse files

Option to disable tooltip on raid merker bar

parent 4a985d0b
......@@ -622,6 +622,7 @@ P["sle"] = {
["modifier"] = 'shift-',
["reverse"] = false,
["mouseover"] = false,
["notooltip"] = false,
},
--Screensaver
["screensaver"] = {
......
......@@ -715,6 +715,7 @@ L["Reverse"] = true
L["Modifier Key"] = true
L["Set the modifier key for placing world markers."] = true
L["Visibility State"] = true
L["No tooltips"] = true
--Raidroles
L["Options for customizing Blizzard Raid Manager \"O - > Raid\""] = true
......
......@@ -706,6 +706,7 @@ L["Reverse"] = "Umkehren"
L["Modifier Key"] = "Modifier Taste"
L["Set the modifier key for placing world markers."] = "Setzt eine modifierungs Taste um eine Weltmarkierung zu setzen."
L["Visibility State"] = "Sichtbarkeit"
L["No tooltips"] = true
--Raidroles
L["Options for customizing Blizzard Raid Manager \"O - > Raid\""] = true
......
......@@ -711,6 +711,7 @@ L["Reverse"] = "Обратный порядок"
L["Modifier Key"] = "Модификатор"
L["Set the modifier key for placing world markers."] = "Модификатор для установки меток на земле."
L["Visibility State"] = "Видимость"
L["No tooltips"] = "Без подсказок"
--Raidroles
L["Options for customizing Blizzard Raid Manager \"O - > Raid\""] = "Опции настройки менеджера рейда \"О -> Рейд\""
......
......@@ -71,6 +71,7 @@ function RM:UpdateWorldMarkersAndTooltips()
if target and not worldmarker then
button:SetScript("OnEnter", function(self)
self:SetBackdropBorderColor(.7, .7, 0)
if E.db.sle.raidmarkers.notooltip then return end
GameTooltip:SetOwner(self, "ANCHOR_BOTTOM")
GameTooltip:SetText(L["Raid Markers"])
GameTooltip:AddLine(i == 9 and L["Click to clear the mark."] or L["Click to mark the target."], 1, 1, 1)
......@@ -84,6 +85,7 @@ function RM:UpdateWorldMarkersAndTooltips()
button:SetScript("OnEnter", function(self)
self:SetBackdropBorderColor(.7, .7, 0)
if E.db.sle.raidmarkers.notooltip then return end
GameTooltip:SetOwner(self, "ANCHOR_BOTTOM")
GameTooltip:SetText(L["Raid Markers"])
GameTooltip:AddLine(i == 9 and T.format("%s\n%s", L["Click to clear the mark."], T.format(L["%sClick to remove all worldmarkers."], button.modifier:upper()))
......
......@@ -123,6 +123,13 @@ local function configTable()
disabled = function() return not E.db.sle.raidmarkers.enable end,
set = function(info, value) E.db.sle.raidmarkers.mouseover = value; RM:UpdateMouseover() end,
},
notooltip = {
order = 15,
type = "toggle",
name = L["No tooltips"],
disabled = function() return not E.db.sle.raidmarkers.enable end,
set = function(info, value) E.db.sle.raidmarkers.notooltip = value; end,
},
},
}
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment