mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-26 09:26:02 +00:00
panel: hide chat buttons if chat is disabled
This commit is contained in:
@@ -639,6 +639,8 @@ pfUI:RegisterModule("panel", "vanilla:tbc", function()
|
||||
if pfUI.chat.left:IsShown() then pfUI.chat.left:Hide() else pfUI.chat.left:Show() end
|
||||
end)
|
||||
|
||||
if not pfUI.chat then pfUI.panel.left.hide:Hide() end
|
||||
|
||||
SkinButton(pfUI.panel.left.hide)
|
||||
pfUI.panel.left.hide:SetBackdropColor(0,0,0,0)
|
||||
|
||||
@@ -724,6 +726,8 @@ pfUI:RegisterModule("panel", "vanilla:tbc", function()
|
||||
if pfUI.chat.right:IsShown() then pfUI.chat.right:Hide() else pfUI.chat.right:Show() end
|
||||
end)
|
||||
|
||||
if not pfUI.chat then pfUI.panel.right.hide:Hide() end
|
||||
|
||||
SkinButton(pfUI.panel.right.hide)
|
||||
pfUI.panel.right.hide:SetBackdropColor(0,0,0,0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user