Originally Posted by Unkn
Ah okay.
Code for panel
Code:
lpanels:CreateLayout("TextCover", {
{ name = "Box", parent = "ChatFrame" <<<prolly not the right name might have to look around for that
strata = "HIGH", anchor_to = "CENTER"
x_off = 0, y_off = 0,
width = "100%", height = "100%",
bg_color = "0 0 0", bg_alpha = 0,
text = {
string = "testing",
size = 13,
},
},
}); lpanels:ApplyLayout(nil, "TextCover")
Code for button to toggle
Code:
OnClick = function(self, button)
if button == "LeftButton" then
if LP_Box:IsShown() then
LP_Box:Hide()
ChatFrame:Show()
else
LP_Box:Show()
ChatFrame:Hide()
end
end
end,
You should be able to just parent your cover box to the chat frame. Make it easy should you ever resize or move chatframe you wont have to resize the box.
|
Setting the alpha to 0 makes it completely transparent. The chat behind it will still show, right?