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.
[0.4.0] Custom guis buttoms allways next to each other
Re: [0.4.0] Custom guis buttoms allways next to each other
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.
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
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
Ok thanx, so move this to not a bug