Skip to content

Commit

Permalink
chat: use original background for undocked windows
Browse files Browse the repository at this point in the history
  • Loading branch information
shagu committed Oct 3, 2023
1 parent 42f0bff commit 866ebdc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions modules/chat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,18 @@ pfUI:RegisterModule("chat", "vanilla:tbc", function ()
frame.pfCombatLog = nil
end

for _, tex in pairs(CHAT_FRAME_TEXTURES) do
local texture = _G["ChatFrame"..i..tex]
texture.oldTexture = texture.oldTexture or texture:GetTexture()

if i == 3 or frame.isDocked then
texture:SetTexture()
texture:Hide()
else
texture:SetTexture(texture.oldTexture)
end
end

if not frame.pfStartMoving then
frame.pfStartMoving = frame.StartMoving
frame.StartMoving = function(a1)
Expand Down

0 comments on commit 866ebdc

Please sign in to comment.