Commit 59f473d0 authored by Benik's avatar Benik

Simplified the Chat DTs toggle and renamed their option from 'Enable' to...

Simplified the Chat DTs toggle and renamed their option from 'Enable' to 'Show', since they are enabled/disabled via ElvUI options
parent 38205df5
......@@ -63,29 +63,10 @@ local bbuttons = {}
function mod:ToggleBuiDts()
local db = E.db.benikui.datatexts.chat
local edb = E.db.datatexts
if edb.leftChatPanel or edb.rightChatPanel then
db.enable = false
BuiLeftChatDTPanel:Hide()
BuiRightChatDTPanel:Hide()
end
if db.enable then
if db.showChatDt == 'SHOWBOTH' then
BuiLeftChatDTPanel:Show()
BuiRightChatDTPanel:Show()
elseif db.showChatDt == 'LEFT' then
if not edb.leftChatPanel then
BuiLeftChatDTPanel:Show()
end
BuiRightChatDTPanel:Hide()
elseif db.showChatDt == 'RIGHT' then
BuiLeftChatDTPanel:Hide()
if not edb.rightChatPanel then
BuiRightChatDTPanel:Show()
end
end
BuiLeftChatDTPanel:Show()
BuiRightChatDTPanel:Show()
else
BuiLeftChatDTPanel:Hide()
BuiRightChatDTPanel:Hide()
......
......@@ -70,6 +70,7 @@ L['Hide Mail Icon'] = "Verstecke das Postsymbol"
L['Middle'] = "Mittlerer"
L['New Mail'] = "Neue Post"
L['No Mail'] = "Keine Post"
L['Show'] = true
L['Show Garrison Currency'] = "Zeige Garnisonsresourcen"
L['Show Oil'] = "Zeige Öl"
L['Show/Hide Chat DataTexts. ElvUI chat datatexts must be disabled'] = "Chat Infotexte anzeigen/ausblenden. ElvUI Infotexte müssen dafür deaktiviert sein"
......
......@@ -71,6 +71,7 @@ L['Hide Mail Icon'] = true
L['Middle'] = true
L['New Mail'] = true
L['No Mail'] = true
L['Show'] = true
L['Show Garrison Currency'] = true
L['Show Oil'] = true
L['Show/Hide Chat DataTexts. ElvUI chat datatexts must be disabled'] = true
......
......@@ -70,6 +70,7 @@ L['Hide Mail Icon'] = true
L['Middle'] = true
L['New Mail'] = true
L['No Mail'] = true
L['Show'] = true
L['Show Garrison Currency'] = true
L['Show Oil'] = true
L['Show/Hide Chat DataTexts. ElvUI chat datatexts must be disabled'] = true
......
......@@ -70,6 +70,7 @@ L['Hide Mail Icon'] = true
L['Middle'] = true
L['New Mail'] = true
L['No Mail'] = true
L['Show'] = true
L['Show Garrison Currency'] = true
L['Show Oil'] = true
L['Show/Hide Chat DataTexts. ElvUI chat datatexts must be disabled'] = true
......
......@@ -70,6 +70,7 @@ L['Hide Mail Icon'] = true
L['Middle'] = true
L['New Mail'] = true
L['No Mail'] = true
L['Show'] = true
L['Show Garrison Currency'] = true
L['Show Oil'] = true
L['Show/Hide Chat DataTexts. ElvUI chat datatexts must be disabled'] = true
......
......@@ -70,6 +70,7 @@ L['Hide Mail Icon'] = true
L['Middle'] = true
L['New Mail'] = true
L['No Mail'] = true
L['Show'] = true
L['Show Garrison Currency'] = true
L['Show Oil'] = true
L['Show/Hide Chat DataTexts. ElvUI chat datatexts must be disabled'] = true
......
......@@ -70,6 +70,7 @@ L['Hide Mail Icon'] = true
L['Middle'] = true
L['New Mail'] = true
L['No Mail'] = true
L['Show'] = true
L['Show Garrison Currency'] = true
L['Show Oil'] = true
L['Show/Hide Chat DataTexts. ElvUI chat datatexts must be disabled'] = true
......
......@@ -70,6 +70,7 @@ L['Hide Mail Icon'] = true
L['Middle'] = true
L['New Mail'] = true
L['No Mail'] = true
L['Show'] = true
L['Show Garrison Currency'] = true
L['Show Oil'] = true
L['Show/Hide Chat DataTexts. ElvUI chat datatexts must be disabled'] = true
......
......@@ -70,6 +70,7 @@ L['Hide Mail Icon'] = true
L['Middle'] = true
L['New Mail'] = true
L['No Mail'] = true
L['Show'] = true
L['Show Garrison Currency'] = true
L['Show Oil'] = true
L['Show/Hide Chat DataTexts. ElvUI chat datatexts must be disabled'] = true
......
......@@ -70,6 +70,7 @@ L['Hide Mail Icon'] = true
L['Middle'] = true
L['New Mail'] = true
L['No Mail'] = true
L['Show'] = true
L['Show Garrison Currency'] = true
L['Show Oil'] = true
L['Show/Hide Chat DataTexts. ElvUI chat datatexts must be disabled'] = true
......
......@@ -30,7 +30,7 @@ local function Datatexts()
enable = {
order = 1,
type = 'toggle',
name = L["Enable"],
name = L["Show"],
desc = L['Show/Hide Chat DataTexts. ElvUI chat datatexts must be disabled'],
get = function(info) return E.db.benikui.datatexts.chat[ info[#info] ] end,
set = function(info, value) E.db.benikui.datatexts.chat[ info[#info] ] = value; BL:ToggleBuiDts(); LO:ToggleChatPanels(); E:GetModule('Chat'):UpdateEditboxAnchors(); end,
......@@ -110,7 +110,7 @@ local function Datatexts()
enable = {
order = 1,
type = 'toggle',
name = L["Enable"],
name = L["Show"],
get = function(info) return E.db.benikui.datatexts.middle[ info[#info] ] end,
set = function(info, value) E.db.benikui.datatexts.middle[ info[#info] ] = value; BL:MiddleDatatextLayout(); 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