View Single Post
06-02-10, 07:26 PM   #29
Politig
A Chromatic Dragonspawn
AddOn Compiler - Click to view compilations
Join Date: May 2009
Posts: 176
Originally Posted by Unkn View Post
Code:
	 OnClick = function(self, button)
		if button == "LeftButton" then
			if LP_Box:IsShown() then
				LP_Box:Hide()
				ChatFrame1:Show()
				ChatFrame2:Show()
				ChatFrame3:Show()
				ChatFrame4:Show()
			else
				LP_Box:Show()
				ChatFrame1:Hide()
				ChatFrame2:Hide()
				ChatFrame3:Hide()
				ChatFrame4:Hide()

			end
		end
	end,
Is what I was doing, however its not hiding the chat frames when a message is sent. I tried ToggleFrame(ChatFrame...) as well.
Hmm... Hiding the frame might be the only way. With KGP, you just need to create a panel to overlap whatever you try and cover, not try and get it to hide.
  Reply With Quote