mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-18 10:40:48 +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
|
if pfUI.chat.left:IsShown() then pfUI.chat.left:Hide() else pfUI.chat.left:Show() end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
if not pfUI.chat then pfUI.panel.left.hide:Hide() end
|
||||||
|
|
||||||
SkinButton(pfUI.panel.left.hide)
|
SkinButton(pfUI.panel.left.hide)
|
||||||
pfUI.panel.left.hide:SetBackdropColor(0,0,0,0)
|
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
|
if pfUI.chat.right:IsShown() then pfUI.chat.right:Hide() else pfUI.chat.right:Show() end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
if not pfUI.chat then pfUI.panel.right.hide:Hide() end
|
||||||
|
|
||||||
SkinButton(pfUI.panel.right.hide)
|
SkinButton(pfUI.panel.right.hide)
|
||||||
pfUI.panel.right.hide:SetBackdropColor(0,0,0,0)
|
pfUI.panel.right.hide:SetBackdropColor(0,0,0,0)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user