[0.4.0] Custom guis buttoms allways next to each other

Bugs that are actually features.
Post Reply
ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

[0.4.0] Custom guis buttoms allways next to each other

Post 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.

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

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

Post 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.

ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

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

Post 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 :)

Post Reply

Return to “Not a bug”