Either tonegod gui or lemur gui is good.
I designed a panel that fill out with buttons or labels.
But there is a problem that if the button or label’s y coordinate is over than the height of panel, the button or label will be go out from the panel.
I want the button/label that the y coordinate is over than the height of the panel to be hidden.
I also designed a slider along the panel.
if I push down the slider, that make the panel “down” and show the rest of buttons/labels that were hidden on the bottom of the panel.
anyone can help me?
Thank you so much
I haven’t used these libraries, but check if theres any methods with “clip” in them, check the element and the parent.
I’m not clear whether you are asking how to make the panel fit the children or how to have children contained in a scroll panel. Maybe you can draw or show a picture of the way you want it to be?
Since Lemur (by default) only uses standard JME materials, there is no way (yet) to clip children to a container and provide a scroll bar. From Lemur’s perspective, doing this correctly and in a general way is quite tricky.
<cite>@wezrule said:</cite> I haven't used these libraries, but check if theres any methods with "clip" in them, check the element and the parent.Thanks for help, I will try it
<cite>@pspeed said:</cite> I'm not clear whether you are asking how to make the panel fit the children or how to have children contained in a scroll panel. Maybe you can draw or show a picture of the way you want it to be?Since Lemur (by default) only uses standard JME materials, there is no way (yet) to clip children to a container and provide a scroll bar. From Lemur’s perspective, doing this correctly and in a general way is quite tricky.
Thanks for help.
My question is that while setting a button’s y coordinate is more than a panel’s height, the button will go out from the panel
I want the button not go out from the panel, just hides from it.
the problem is solved
just as what wezrule said,
button.setClippingLayer(panel) works
<cite>@harry1315 said:</cite> the problem is solved just as what wezrule said, button.setClippingLayer(panel) works
I can’t find this method which class has it? (As Element does not seem to have it…)
<cite>@jadam said:</cite> I can't find this method which class has it? (As Element does not seem to have it....)
to use tonegodgui, you have to download the tonegodgui plugin, then add the tonegodgui library to the project
It is a class for ButtonAdapter, tonegodgui element class also has this method
Hope it can help you.