From 866ebdc2346be2671a2bf1d99bcfa2c98445c27d Mon Sep 17 00:00:00 2001 From: shagu Date: Tue, 3 Oct 2023 14:55:03 +0200 Subject: [PATCH] chat: use original background for undocked windows --- modules/chat.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/chat.lua b/modules/chat.lua index fe2128ab..1ba82005 100644 --- a/modules/chat.lua +++ b/modules/chat.lua @@ -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)