Not modding interface related, but would be a big help for any modder that tries to do UIs in factorio.
A kitchensink is an overview of all available (vanilla) styles, their configurable attributes, and how they look.
Something like this http://code.divshot.com/bootstrap-theme ... -sink.html
Since you are redoing the UI-Styles, now would be the time to create them too. Hell, you even should have them for yourself already
Kitchensink
Re: Kitchensink
I recall this from FFF #243: https://factorio.com/blog/post/fff-243 So they are building them internally, but they are probably changing quickly right now too.
image
Re: Kitchensink
That would be the "how they" look part. Still would be no big help for modders since you do not get the type/style you have to use in lua to get them.
- eradicator
- Smart Inserter
- Posts: 5206
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: Kitchensink
An auto-generated style-reference of all styles would be kinda neat indeed. Doesn't have to be a layout that actually makes sense like the one linked in the FFF.
Dunno, your example page looks pretty similar and i don't see any code there. From the FFF page i'd guess the styles are called according to the same naming scheme as current ones, i.e. something like editable_display_style, info_text_style, confirm_button_style, crafting_button_style etc....Godmave wrote:That would be the "how they" look part. Still would be no big help for modders since you do not get the type/style you have to use in lua to get them.
Re: Kitchensink
The main problem with this is the same reason we haven't made any automated prototype documentation: There are So. Many. Different. Ways. that each bit of data can be provided for a given style and so many combinations of what it actually does that nobody has been able to make any auto-documentation system work.
If you want to get ahold of me I'm almost always on Discord.
Re: Kitchensink
@eradicator:
Yea, something like https://getbootstrap.com/docs/4.1/components/alerts/ would be better I guess. The other one only gives a fast overview how things look with that theme providing that you already know how to create stuff.
For starters a list of available types/styles and how they would render if unchanged via lua .style would be sufficient.
Automated creation should not even be needed, since you are not going to change most of the gui after it is done. The right place would be a/the wiki I guess.
But it is some work. I will sleep on it some more and if I can come up with a workable solution come back here.
Yea, something like https://getbootstrap.com/docs/4.1/components/alerts/ would be better I guess. The other one only gives a fast overview how things look with that theme providing that you already know how to create stuff.
For starters a list of available types/styles and how they would render if unchanged via lua .style would be sufficient.
Automated creation should not even be needed, since you are not going to change most of the gui after it is done. The right place would be a/the wiki I guess.
But it is some work. I will sleep on it some more and if I can come up with a workable solution come back here.
Re: Kitchensink
At least, a top 50 of the most common UI-Stuff (Elements, Panels, Buttons, ...) would be VERY nice.Rseding91 wrote:The main problem with this is the same reason we haven't made any automated prototype documentation: There are So. Many. Different. Ways. that each bit of data can be provided for a given style and so many combinations of what it actually does that nobody has been able to make any auto-documentation system work.
Re: Kitchensink
I started a little mod yesterday that I might extend to more stuff and the ability to generate the add{} code to copy/paste.
https://mods.factorio.com/mod/kitchensink
But that's inside the game. Some outside reference would be better I guess, for the cases where your own code prevents starting the map
https://mods.factorio.com/mod/kitchensink
But that's inside the game. Some outside reference would be better I guess, for the cases where your own code prevents starting the map