Mod Toolbar

Post your ideas and suggestions how to improve the game.

Mod Toolbar

Postby Pinga » Sat Aug 11, 2018 3:18 am

Currently there's no standard way for mods to create their own buttons in the UI, so each one put it wherever they like.

Examples:

bad1.png
bad1.png (53.54 KiB) Viewed 133 times

bad2.png
bad2.png (34.82 KiB) Viewed 133 times


While not super high priority, it would be interesting it they had a standard and more organic way to integrate in the UI. One idea is: since we are going to have a CTRL-C / CTRL-V toolbar, maybe that could be extensible so mods add their own buttons. Maybe extend the already existing upper right toolbar above the minimap. 0.17 is revamping the UI, and looks like a good time to define this.

A good example: most browsers let addons put their buttons in the toolbar alongside the standard ones, and allows them to show information, can be reordered and have separators.

good1.png
good1.png (3.06 KiB) Viewed 133 times
Pinga
Burner Inserter
Burner Inserter
 
Posts: 6
Joined: Fri Oct 27, 2017 3:59 pm

Re: Mod Toolbar

Postby Ghoulish » Sat Aug 11, 2018 11:55 am

I hope this will be fixed in the coming gui rework, it needs a uniform size and style with equal positioning that scales with any change to UI scale.

Untitled4ytvg24tuy24b5.png
Untitled4ytvg24tuy24b5.png (105.72 KiB) Viewed 115 times


The text in the middle of the buttons looks ugly imho too, I guess the ordering is related to the mod load order? Not overly sure of a cleaner implementation though, perhaps buttons first left to right, then the text field(s), perhaps even force all mods to use buttons which would then toggle / shows whatever. I'm sure I read kovarex mention this at some point, somewhere.. Hope it's on the to do list.
Ghoulish
Filter Inserter
Filter Inserter
 
Posts: 272
Joined: Fri Oct 16, 2015 8:40 am

Re: Mod Toolbar

Postby Klonan » Sat Aug 11, 2018 12:03 pm

Pinga wrote:Currently there's no standard way for mods to create their own buttons in the UI, so each one put it wherever they like.


There is the mod_gui library, which allows mods to put the buttons in the same flow with uniform spacing and style, as you can see in the first 3 buttons in this screenshot:

Image

You will need to coerce the mod authors to actually use the system
User avatar
Klonan
Factorio Staff
Factorio Staff
 
Posts: 3193
Joined: Sun Jan 11, 2015 2:09 pm

Re: Mod Toolbar

Postby eradicator » Mon Aug 13, 2018 7:08 am

Klonan wrote:You will need to coerce the mod authors to actually use the system

I bet 10M green circuits on "ain't ever gonna happen".

@OP:
From what i've seen of other mods GUIs so far this is not really a problem of that one button in the corner. Even the popular ones look like the author made the GUI up the the point where it barely works, and spent exactly no time on making it look nice. I think the main reason is that making a well looking GUI simply requires alot of time and effort, possibly more than the rest of a medium sized mod (respect to the wube team ;). Also i've heared people talk about mod GUIs as "black magic", suggesting that at least some modders are simply scared of writing GUI code and want to get done with it as fast as possible :).

Also the base games mod "button" methaphor only works for basic static buttons, something like expanding menus when clicking the button (like the "text box" in your screenshot), or dynamic buttons isn't supported (because it would break style again).

So yea, your "best" chance is naggin every single mod author and send them pull requests if you want normalized buttons.

@Klonan:
Btw, was there any progress on introducing a mechanism to change the order of gui elements after creation? A simple swap() would allow creation of a mod that allows customizing the button order.
User avatar
eradicator
Smart Inserter
Smart Inserter
 
Posts: 1936
Joined: Tue Jul 12, 2016 9:03 am
Location: Mod support languages: JA/DE/EN


Return to Ideas and Suggestions

Who is online

Users browsing this forum: No registered users and 6 guests