Hi, I have used LitePanels in a simple way for long time ...
Now I'd like to use it trying to make something more complex, but I am having some difficulties:
Lua Code:
lpanels:CreateLayout("Back2", {
{ name = "P1", anchor_to = "BOTTOM", x_off = 0, y_off = 4,
bg_alpha = 0.5, width = 460, height = 120,
border = "SOLID", border_color = "CLASS",
},
{ name = "P2",
anchor_to="BOTTOMLEFT", anchor_from="BOTTOMRIGHT", anchor_frame = "P1",
x_off = 2, y_off = 0,
bg_alpha = 0.5, width = 115, height = 120,
border = "SOLID", border_color = "CLASS",
OnLoad = function(self) self:SetAlpha(0) end,
OnEnter = function(self)
self:SetAlpha(1)
-- BT4Bar3:Show()
end,
OnLeave = function(self)
print( "DEBUG: The mouse is over " .. GetMouseFocus():GetName())
if GetMouseFocus():GetParent() ~= self then
self:SetAlpha(0)
end
end,
},
} )
The problem is, as pointed out in this forum earlier, that I'd like to make P2 panel show and hide on the event Enter and Leave.
But I have filled the P2 panel with a 3x3 bar of BT4 and when I hovering over it the P2 panel disappear if I use a simple self:SetAlpha(0) condition.
Also the solution I found in this thread, as posted above, isn't working.
Any idea ? Thanks.
P.s.
This is really a great addon.