Page 1 of 1

[0.4.0] Custom guis buttoms allways next to each other

Posted: Sun May 05, 2013 6:02 pm
by ficolas
I was updating my mod, and I did everything I solved everything that has changed in this release, then, I created a new world, and opened the custom GUI I made, and ALL the buttoms, were next to each other, instead of beeing under each other, like so:

[blablabla] [blablabla] [blablabla]

instead of

[blablabla]
[blablabla]
[blablabla]

Also, I tested with all the positions, center, top and left.

Re: [0.4.0] Custom guis buttoms allways next to each other

Posted: Sun May 05, 2013 7:37 pm
by kovarex
The root element direction is horizontal, you can change it

game.player.gui.top.direction = "vertical", but better (to not disturb other mods, would be to add your own flow inside

game.player.gui.top.add{type="flow", direction="vertial", name="my_mod_flow"}
game.player.gui.top.mymydflow.add .....

Once the bugfix is out, I will work on the documentation.

Re: [0.4.0] Custom guis buttoms allways next to each other

Posted: Sun May 05, 2013 7:46 pm
by ficolas
yup, I created a new flow, so I can easily destroy all my menu, just by destroying that flow.
Ok thanx, so move this to not a bug :)