diff --git a/Scoreboard.lua b/Scoreboard.lua index 65dfa46..1a23741 100644 --- a/Scoreboard.lua +++ b/Scoreboard.lua @@ -41,6 +41,7 @@ do if type(sv.showLimits) ~= "boolean" then sv.showLimits = true end if type(sv.showHeaders) ~= "boolean" then sv.showHeaders = true end if type(sv.useShortLabels) ~= "boolean" then sv.useShortLabels = false end + if type(sv.disableUsageText) ~= "boolean" then sv.disableUsageText = false end addon.db = sv ldbi:Register(addonName, addon.dataobj, addon.db.minimap) @@ -150,7 +151,9 @@ do end GameTooltip:AddLine(L["Scoreboard"].."\n") - GameTooltip:AddLine(muted(L["usageDescription"])) + if not addon.db.disableUsageText then + GameTooltip:AddLine(muted(L["usageDescription"]).."\n") + end for i=1, size do local c = C_CurrencyInfo.GetCurrencyListInfo(i) diff --git a/config.lua b/config.lua index 6eeb9c2..9259f36 100644 --- a/config.lua +++ b/config.lua @@ -69,6 +69,14 @@ local function build() get = function(info) return addon.db[info[#info]] end, set = function(info, value) return addon:setDB(info[#info], value) end, }, + disableUsageText = { + type = 'toggle', + order = 8, + name = L.disableUsageText, + desc = L.disableUsageTextDescription, + get = function(info) return addon.db[info[#info]] end, + set = function(info, value) return addon:setDB(info[#info], value) end, + }, currencies = { type = "header", name = L["currenciesTitle"], diff --git a/i18n/enUS.lua b/i18n/enUS.lua index 765007d..13ca6ee 100644 --- a/i18n/enUS.lua +++ b/i18n/enUS.lua @@ -22,8 +22,8 @@ L["showHeadersDescription"] = "Show the currency groupings within the tooltip." L["useShortLabels"] = "Use short labels"; L["useShortLabelsDescription"] = "Shorten the data text by changing the label to use an abbreviated form of the currency name." -L["showPlaceholder"] = "Show placeholder text"; -L["showPlaceholderDescription"] = "When no currencies are visible, should placeholder text be shown (to allow you to quickly access settings).\nIf disabled, use the /scoreboard command to bring up this settings window." +L["disableUsageText"] = "Disable usage text" +L["disableUsageTextDescription"] = "If checked, the usage instructions will not be shown on the tooltip." L["settingsTitle"] = "Settings"; L["settingsDescription"] = "Settings description here"; diff --git a/i18n/ruRU.lua b/i18n/ruRU.lua index 540c67b..9bef265 100644 --- a/i18n/ruRU.lua +++ b/i18n/ruRU.lua @@ -23,8 +23,8 @@ if locale == "ruRU" then L["useShortLabels"] = "Сокращения"; L["useShortLabelsDescription"] = "Сокращать названия валют."; - L["showPlaceholder"] = "Show placeholder text"; - L["showPlaceholderDescription"] = "When no currencies are visible, should placeholder text be shown (to allow you to quickly access settings).\nIf disabled, use the /scoreboard command to bring up this settings window."; + L["disableUsageText"] = "Disable usage text" + L["disableUsageTextDescription"] = "If checked, the usage instructions will not be shown on the tooltip." L["settingsTitle"] = "Settings"; L["settingsDescription"] = "Settings description here";