Commit 04360d95 authored by Simpy's avatar Simpy 🐹
Browse files

chat panel size/movers

parent 07396fba
......@@ -165,22 +165,22 @@ function LO:RefreshChatMovers()
local showRightPanel = E.db.datatexts.panels.RightChatDataPanel.enable
local showLeftPanel = E.db.datatexts.panels.LeftChatDataPanel.enable
if not showLeftPanel or E.db.chat.LeftChatDataPanelAnchor == 'ABOVE_CHAT' then
LeftChatPanel:Point(Left, LeftChatMover, 0, 0)
LeftChatPanel:SetPoint(Left, LeftChatMover, 0, 0)
elseif showLeftPanel then
LeftChatPanel:Point(Left, LeftChatMover, 0, barHeight)
LeftChatPanel:SetPoint(Left, LeftChatMover, 0, barHeight)
end
if not showRightPanel or E.db.chat.RightChatDataPanelAnchor == 'ABOVE_CHAT' then
RightChatPanel:Point(Right, RightChatMover, 0, 0)
RightChatPanel:SetPoint(Right, RightChatMover, 0, 0)
elseif showRightPanel then
RightChatPanel:Point(Right, RightChatMover, 0, barHeight)
RightChatPanel:SetPoint(Right, RightChatMover, 0, barHeight)
end
-- mover sizes: same as in CH.PositionChats for panels but including the datatext bar height
LeftChatMover:Size(E.db.chat.panelWidth, E.db.chat.panelHeight + (showLeftPanel and barHeight or 0))
LeftChatMover:SetSize(E.db.chat.panelWidth, E.db.chat.panelHeight + (showLeftPanel and barHeight or 0))
if E.db.chat.separateSizes then
RightChatMover:Size(E.db.chat.panelWidthRight, E.db.chat.panelHeightRight + (showRightPanel and barHeight or 0))
RightChatMover:SetSize(E.db.chat.panelWidthRight, E.db.chat.panelHeightRight + (showRightPanel and barHeight or 0))
else
RightChatMover:Size(E.db.chat.panelWidth, E.db.chat.panelHeight + (showRightPanel and barHeight or 0))
RightChatMover:SetSize(E.db.chat.panelWidth, E.db.chat.panelHeight + (showRightPanel and barHeight or 0))
end
end
......
......@@ -1187,11 +1187,11 @@ function CH:PositionChat(chat)
end
function CH:PositionChats()
_G.LeftChatPanel:Size(CH.db.panelWidth, CH.db.panelHeight)
_G.LeftChatPanel:SetSize(CH.db.panelWidth, CH.db.panelHeight)
if CH.db.separateSizes then
_G.RightChatPanel:Size(CH.db.panelWidthRight, CH.db.panelHeightRight)
_G.RightChatPanel:SetSize(CH.db.panelWidthRight, CH.db.panelHeightRight)
else
_G.RightChatPanel:Size(CH.db.panelWidth, CH.db.panelHeight)
_G.RightChatPanel:SetSize(CH.db.panelWidth, CH.db.panelHeight)
end
LO:RepositionChatDataPanels()
......
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