mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 16:34:45 +00:00
update chat
This commit is contained in:
@@ -259,8 +259,9 @@ function LO:CreateChatPanels()
|
|||||||
|
|
||||||
--Left Chat Tab
|
--Left Chat Tab
|
||||||
local lchattab = CreateFrame("Frame", "LeftChatTab", LeftChatPanel)
|
local lchattab = CreateFrame("Frame", "LeftChatTab", LeftChatPanel)
|
||||||
|
lchattab:SetWidth(E.db.chat.panelWidth -(SPACING*2))
|
||||||
|
lchattab:SetHeight(PANEL_HEIGHT)
|
||||||
lchattab:SetPoint("TOPLEFT", lchat, "TOPLEFT", SPACING, -SPACING)
|
lchattab:SetPoint("TOPLEFT", lchat, "TOPLEFT", SPACING, -SPACING)
|
||||||
lchattab:SetPoint("BOTTOMRIGHT", lchat, "TOPRIGHT", -SPACING, -(SPACING + PANEL_HEIGHT))
|
|
||||||
E:SetTemplate(lchattab, E.db.chat.panelTabTransparency == true and "Transparent" or "Default", true)
|
E:SetTemplate(lchattab, E.db.chat.panelTabTransparency == true and "Transparent" or "Default", true)
|
||||||
|
|
||||||
--Left Chat Data Panel
|
--Left Chat Data Panel
|
||||||
@@ -306,8 +307,9 @@ function LO:CreateChatPanels()
|
|||||||
|
|
||||||
--Right Chat Tab
|
--Right Chat Tab
|
||||||
local rchattab = CreateFrame("Frame", "RightChatTab", RightChatPanel)
|
local rchattab = CreateFrame("Frame", "RightChatTab", RightChatPanel)
|
||||||
|
rchattab:SetWidth((E.db.chat.separateSizes and E.db.chat.panelWidthRight or E.db.chat.panelWidth) -(SPACING*2))
|
||||||
|
rchattab:SetHeight(PANEL_HEIGHT)
|
||||||
rchattab:SetPoint("TOPRIGHT", rchat, "TOPRIGHT", -SPACING, -SPACING)
|
rchattab:SetPoint("TOPRIGHT", rchat, "TOPRIGHT", -SPACING, -SPACING)
|
||||||
rchattab:SetPoint("BOTTOMLEFT", rchat, "TOPLEFT", SPACING, -(SPACING + PANEL_HEIGHT))
|
|
||||||
E:SetTemplate(rchattab, E.db.chat.panelTabTransparency == true and "Transparent" or "Default", true)
|
E:SetTemplate(rchattab, E.db.chat.panelTabTransparency == true and "Transparent" or "Default", true)
|
||||||
|
|
||||||
--Right Chat Data Panel
|
--Right Chat Data Panel
|
||||||
|
|||||||
@@ -401,8 +401,15 @@ end
|
|||||||
function CH:PositionChat(override)
|
function CH:PositionChat(override)
|
||||||
if ((not override and self.initialMove) or (not override)) then return end
|
if ((not override and self.initialMove) or (not override)) then return end
|
||||||
if not RightChatPanel or not LeftChatPanel then return end
|
if not RightChatPanel or not LeftChatPanel then return end
|
||||||
E:Size(RightChatPanel, E.db.chat.separateSizes and E.db.chat.panelWidthRight or E.db.chat.panelWidth, E.db.chat.separateSizes and E.db.chat.panelHeightRight or E.db.chat.panelHeight)
|
RightChatPanel:SetWidth(E.db.chat.separateSizes and E.db.chat.panelWidthRight or E.db.chat.panelWidth)
|
||||||
E:Size(LeftChatPanel, E.db.chat.panelWidth, E.db.chat.panelHeight)
|
RightChatPanel:SetHeight(E.db.chat.separateSizes and E.db.chat.panelHeightRight or E.db.chat.panelHeight)
|
||||||
|
LeftChatPanel:SetWidth(E.db.chat.panelWidth)
|
||||||
|
LeftChatPanel:SetHeight(E.db.chat.panelHeight)
|
||||||
|
|
||||||
|
LeftChatTab:SetWidth(E.db.chat.panelWidth -((E.Border*3 - E.Spacing)*2))
|
||||||
|
LeftChatDataPanel:SetWidth(E.db.chat.panelWidth -(((E.Border*3 - E.Spacing)*2) + 16))
|
||||||
|
RightChatTab:SetWidth((E.db.chat.separateSizes and E.db.chat.panelWidthRight or E.db.chat.panelWidth) -((E.Border*3 - E.Spacing)*2))
|
||||||
|
RightChatDataPanel:SetWidth((E.db.chat.separateSizes and E.db.chat.panelWidthRight or E.db.chat.panelWidth) -(((E.Border*3 - E.Spacing)*2) + 16))
|
||||||
|
|
||||||
self.RightChatWindowID = FindRightChatID()
|
self.RightChatWindowID = FindRightChatID()
|
||||||
|
|
||||||
@@ -431,11 +438,9 @@ function CH:PositionChat(override)
|
|||||||
BASE_OFFSET = BASE_OFFSET - 24
|
BASE_OFFSET = BASE_OFFSET - 24
|
||||||
E:Point(chat, "BOTTOMLEFT", RightChatDataPanel, "BOTTOMLEFT", 1, 1)
|
E:Point(chat, "BOTTOMLEFT", RightChatDataPanel, "BOTTOMLEFT", 1, 1)
|
||||||
end
|
end
|
||||||
if id ~= 2 then
|
|
||||||
E:Size(chat, (E.db.chat.separateSizes and E.db.chat.panelWidthRight or E.db.chat.panelWidth) - 11, (E.db.chat.separateSizes and E.db.chat.panelHeightRight or E.db.chat.panelHeight) - BASE_OFFSET)
|
chat:SetWidth((E.db.chat.separateSizes and E.db.chat.panelWidthRight or E.db.chat.panelWidth) - 11)
|
||||||
else
|
chat:SetHeight((E.db.chat.separateSizes and E.db.chat.panelHeightRight or E.db.chat.panelHeight) - BASE_OFFSET)
|
||||||
E:Size(chat, E.db.chat.panelWidth - 11, (E.db.chat.panelHeight - BASE_OFFSET))
|
|
||||||
end
|
|
||||||
|
|
||||||
tab:SetParent(RightChatPanel)
|
tab:SetParent(RightChatPanel)
|
||||||
chat:SetParent(RightChatPanel)
|
chat:SetParent(RightChatPanel)
|
||||||
@@ -461,8 +466,8 @@ function CH:PositionChat(override)
|
|||||||
BASE_OFFSET = BASE_OFFSET - 24
|
BASE_OFFSET = BASE_OFFSET - 24
|
||||||
E:Point(chat, "BOTTOMLEFT", LeftChatToggleButton, "BOTTOMLEFT", 1, 1)
|
E:Point(chat, "BOTTOMLEFT", LeftChatToggleButton, "BOTTOMLEFT", 1, 1)
|
||||||
end
|
end
|
||||||
|
chat:SetWidth(E.db.chat.panelWidth - 11)
|
||||||
E:Size(chat, E.db.chat.panelWidth - 11, E.db.chat.panelHeight - BASE_OFFSET)
|
chat:SetHeight((E.db.chat.panelHeight - BASE_OFFSET))
|
||||||
end
|
end
|
||||||
chat:SetParent(LeftChatPanel)
|
chat:SetParent(LeftChatPanel)
|
||||||
if i > 2 then
|
if i > 2 then
|
||||||
|
|||||||
Reference in New Issue
Block a user