Commit f013f69e authored by Tukz's avatar Tukz
Browse files

Update ChatFrames.lua

parent 5f7088bf
......@@ -467,6 +467,7 @@ function TukuiChat:HideChatFrame(button, id)
local Panels = T.Panels
local Background = id == 1 and Panels.LeftChatBG or Panels.RightChatBG
local DataText = id == 1 and Panels.DataTextLeft or Panels.DataTextRight
local BG = T.DataTexts.BGFrame
Background:Hide()
......@@ -477,6 +478,10 @@ function TukuiChat:HideChatFrame(button, id)
XP:SetParent(T.Hider)
Rep:SetParent(T.Hider)
end
if BG then
BG:SetParent(T.Hider)
end
DataText:Hide()
......@@ -507,6 +512,7 @@ function TukuiChat:ShowChatFrame(button, id)
local Panels = T.Panels
local Background = id == 1 and Panels.LeftChatBG or Panels.RightChatBG
local DataText = id == 1 and Panels.DataTextLeft or Panels.DataTextRight
local BG = T.DataTexts.BGFrame
Background:Show()
......@@ -518,6 +524,10 @@ function TukuiChat:ShowChatFrame(button, id)
Rep:SetParent(UIParent)
Rep:SetFrameLevel(XP:GetFrameLevel() + 2)
end
if BG then
BG:SetParent(UIParent)
end
DataText:Show()
......
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