Commit f0d7c057 authored by Simpy's avatar Simpy 🐹
Browse files

friends/guild dt nolabel to work

parent d5d6ec23
......@@ -566,12 +566,17 @@ local function OnEvent(self, event, message)
OnEnter(self)
end
self.text:SetFormattedText(displayString, _G.FRIENDS, onlineFriends + numBNetOnline)
if E.global.datatexts.settings.Friends.NoLabel then
self.text:SetFormattedText(displayString, onlineFriends + numBNetOnline)
else
self.text:SetFormattedText(displayString, E.global.datatexts.settings.Friends.Label ~= '' and E.global.datatexts.settings.Friends.Label or _G.FRIENDS, onlineFriends + numBNetOnline)
end
lastPanel = self
end
local function ValueColorUpdate(hex)
displayString = strjoin('', '%s: ', hex, '%d|r')
displayString = strjoin('', E.global.datatexts.settings.Friends.NoLabel and '' or '%s: ', hex, '%d|r')
if lastPanel then
OnEvent(lastPanel, 'ELVUI_COLOR_UPDATE')
......
......@@ -295,14 +295,18 @@ local function OnEvent(self, event, ...)
OnEnter(self)
end
self.text:SetFormattedText(displayString, #guildTable)
if E.global.datatexts.settings.Guild.NoLabel then
self.text:SetFormattedText(displayString, #guildTable)
else
self.text:SetFormattedText(displayString, E.global.datatexts.settings.Guild.Label ~= '' and E.global.datatexts.settings.Guild.Label or GUILD, #guildTable)
end
else
self.text:SetText(noGuildString)
end
end
local function ValueColorUpdate(hex)
displayString = strjoin('', GUILD, ': ', hex, '%d|r')
displayString = strjoin('', E.global.datatexts.settings.Guild.NoLabel and '' or '%s: ', hex, '%d|r')
noGuildString = hex..L["No Guild"]
if lastPanel then
......
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