Hi! As i cant find enought doc about how to to what i need i have to ask one more annoing qustion about Lemur.
I have tried some stuff with Lemur and like it, but i have hard time when i start need to just make simple panel on bottom of the screen with just 2 buttons “Apply” and “Back”. This is how i do:
if i using
Container b = buttons.addChild(new Container(new SpringGridLayout(Axis.Y, Axis.X, FillMode.None, illMode.None)), BorderLayout.Position.Center); both buttons stick to left side of buttons panel and i understand why. Cause Left node is empty. But in this case what can i do for just solve my simple ploblem?
Maybe picture will enlight more then words;
Note: the lack of specific row/column specification. By default, in a column major SpringGridLayout, each new element will get its own column.
Also, not sure what that’s about if you just want buttons on the bottom. You can probably just use the buttons container directly (though you will want to give it the Axis.X, Axis.Y flip like just showed you.
Thank you so much! Will try it asap.
Yes i can understand why u can’t finish docs, we r all pretty busy monkeys:slight_smile:, but i really need to understand better layouting(sizing and scaling concepts) in ur library sisnce i decide to use it in my projects. Hope you gonna find some time to complete docs a little.
It could be a case where you are thinking that it’s more complicated than it is.
It’s pretty simple. GUI Elements are sized according to the layout. The layouts are pretty rigid in how they size and position things. For example, SpringGridLayout will force a grid. The width of the columns and the height of the rows is dependent on what it’s in them and what the flow is… but once that’s decided all GUI elements are forced to the size of their respective cell.
After that, it’s up to the GUI element’s component stack to determine how things look within that size. And that part of Lemur is pretty well documented at least:
…that may help you understand how the DynamicInsetsComponent works. It’s a GUI component that doesn’t draw anything… just helps size and position the next things in the stack.
Edit: and note: I’m not trying to get out of writing docs… just trying to get you past your current hurdles to a point where you can ask more specific questions as needed. Partly these exchanges will help me write docs later anyway.