diff --git a/ElvUI_SLE/defaults/profile.lua b/ElvUI_SLE/defaults/profile.lua index dfc25bb..166cf8a 100644 --- a/ElvUI_SLE/defaults/profile.lua +++ b/ElvUI_SLE/defaults/profile.lua @@ -244,6 +244,7 @@ P["sle"] = { ["expandBNBroadcast"] = false, ["hideFriends"] = false, ["hide_hintline"] = false, + ["hide_titleline"] = false, ["sortBN"] = 'TOONNAME', ["tooltipAutohide"] = 0.2, ["totals"] = false, @@ -255,6 +256,7 @@ P["sle"] = { ["hideGuild"] = false, ["hide_guildname"] = false, ["hide_hintline"] = false, + ["hide_titleline"] = false, ["sortGuild"] = 'TOONNAME', ["tooltipAutohide"] = 0.2, ["totals"] = false, diff --git a/ElvUI_SLE/locales/english.lua b/ElvUI_SLE/locales/english.lua index 6f5429a..fce5e5e 100644 --- a/ElvUI_SLE/locales/english.lua +++ b/ElvUI_SLE/locales/english.lua @@ -368,6 +368,7 @@ L["These options are for modifing the Shadow & Light Friends datatext."] = true L["Hide In Combat"] = true L["Will not show the tooltip while in combat."] = true L["Hide Friends"] = true +L["Hide Title"] = true L["Minimize the Friend Datatext."] = true L["Show Totals"] = true L["Show total friends in the datatext."] = true diff --git a/ElvUI_SLE/locales/russian.lua b/ElvUI_SLE/locales/russian.lua index fabb02f..64033e5 100644 --- a/ElvUI_SLE/locales/russian.lua +++ b/ElvUI_SLE/locales/russian.lua @@ -363,6 +363,7 @@ L["These options are for modifing the Shadow & Light Friends datatext."] = "Оп L["Hide In Combat"] = "Скрывать в бою" L["Will not show the tooltip while in combat."] = "Не отображать подсказки инфо-текста в бою." L["Hide Friends"] = "Скрыть друзей" +L["Hide Title"] = "Скрыть заголовок" L["Minimize the Friend Datatext."] = "Минимизировать список друзей" L["Show Totals"] = "Показывать общее" L["Show total friends in the datatext."] = "Показывать общее кол-во друзей на инфо-тексте." diff --git a/ElvUI_SLE/modules/sledatatexts/friends.lua b/ElvUI_SLE/modules/sledatatexts/friends.lua index 42b25e6..370b853 100644 --- a/ElvUI_SLE/modules/sledatatexts/friends.lua +++ b/ElvUI_SLE/modules/sledatatexts/friends.lua @@ -333,8 +333,10 @@ function LDB.OnEnter(self) end local line = tooltip:AddLine() - tooltip:SetCell(line, 1, "Shadow & Light Friends", ssTitleFont, "CENTER", 0) - tooltip:AddLine(" ") + if not E.db.sle.dt.friends.hide_titleline then + tooltip:SetCell(line, 1, "Shadow & Light Friends", ssTitleFont, "CENTER", 0) + tooltip:AddLine(" ") + end local _, numBNOnline = T.BNGetNumFriends() local _, numFriendsOnline = T.GetNumFriends() diff --git a/ElvUI_SLE/modules/sledatatexts/guild.lua b/ElvUI_SLE/modules/sledatatexts/guild.lua index c133ba5..016f3de 100644 --- a/ElvUI_SLE/modules/sledatatexts/guild.lua +++ b/ElvUI_SLE/modules/sledatatexts/guild.lua @@ -262,8 +262,10 @@ function LDB.OnEnter(self) end local line = tooltip:AddLine() - tooltip:SetCell(line, 1, "Shadow & Light Guild", ssTitleFont, "CENTER", 0) - tooltip:AddLine(" ") + if not E.db.sle.dt.guild.hide_titleline then + tooltip:SetCell(line, 1, "Shadow & Light Guild", ssTitleFont, "CENTER", 0) + tooltip:AddLine(" ") + end if T.IsInGuild() then local guild_table = {} diff --git a/ElvUI_SLE/options/datatexts/friends_c.lua b/ElvUI_SLE/options/datatexts/friends_c.lua index cd295c8..d9b6382 100644 --- a/ElvUI_SLE/options/datatexts/friends_c.lua +++ b/ElvUI_SLE/options/datatexts/friends_c.lua @@ -58,16 +58,23 @@ local function configTable() get = function(info) return E.db.sle.dt.friends.hide_hintline end, set = function(info, value) E.db.sle.dt.friends.hide_hintline = value; end, }, - expandBNBroadcast = { + hide_titleline = { order = 7, type = "toggle", + name = L["Hide Title"], + get = function(info) return E.db.sle.dt.friends.hide_titleline end, + set = function(info, value) E.db.sle.dt.friends.hide_titleline = value; end, + }, + expandBNBroadcast = { + order = 8, + type = "toggle", name = L["Expand RealID"], desc = L["Display realid with two lines to view broadcasts."], get = function(info) return E.db.sle.dt.friends.expandBNBroadcast end, set = function(info, value) E.db.sle.dt.friends.expandBNBroadcast = value; end, }, tooltipAutohide = { - order = 8, + order = 9, type = "range", name = L["Autohide Delay:"], desc = L["Adjust the tooltip autohide delay when mouse is no longer hovering of the datatext."], diff --git a/ElvUI_SLE/options/datatexts/guild_c.lua b/ElvUI_SLE/options/datatexts/guild_c.lua index 5a6566f..a1ed3fe 100644 --- a/ElvUI_SLE/options/datatexts/guild_c.lua +++ b/ElvUI_SLE/options/datatexts/guild_c.lua @@ -50,16 +50,23 @@ local function configTable() get = function(info) return E.db.sle.dt.guild.hide_hintline end, set = function(info, value) E.db.sle.dt.guild.hide_hintline = value; end, }, - hide_gmotd = { + hide_titleline = { order = 6, type = "toggle", + name = L["Hide Title"], + get = function(info) return E.db.sle.dt.guild.hide_titleline end, + set = function(info, value) E.db.sle.dt.guild.hide_titleline = value; end, + }, + hide_gmotd = { + order = 7, + type = "toggle", name = L["Hide MOTD"], desc = L["Hide the guild's Message of the Day in the tooltip."], get = function(info) return E.db.sle.dt.guild.hide_gmotd end, set = function(info, value) E.db.sle.dt.guild.hide_gmotd = value; end, }, hideGuild = { - order = 7, + order = 8, type = "toggle", name = L["Hide Guild"], desc = L["Minimize the Guild Datatext."], @@ -67,7 +74,7 @@ local function configTable() set = function(info, value) E.db.sle.dt.guild.hideGuild = value; end, }, hide_guildname = { - order = 8, + order = 9, type = "toggle", name = L["Hide Guild Name"], desc = L["Hide the guild's name in the tooltip."], @@ -75,7 +82,7 @@ local function configTable() set = function(info, value) E.db.sle.dt.guild.hide_guildname = value; end, }, tooltipAutohide = { - order = 9, + order = 10, type = "range", name = L["Autohide Delay:"], desc = L["Adjust the tooltip autohide delay when mouse is no longer hovering of the datatext."],