Custom title for Script Inventory GUI

Coming soon!
Post Reply
User avatar
Stringweasel
Filter Inserter
Filter Inserter
Posts: 367
Joined: Thu Apr 27, 2017 8:22 pm
Contact:

Custom title for Script Inventory GUI

Post by Stringweasel »

What
When opening a script inventory GUI the title always shows "Script Inventory". The request is to be able to add a custom name to be shown instead.

Image
Why
Currently it always shows "Script Inventory", as defined in the locale file. This means that only one mod can define what should be shown in this title, which means it can't really be used reliably.

It can be circumvented by instead creating a custom container entity, but that adds a lot of maintenance, and in some ways defeats the purpose of the script inventory.
Suggestion
An additional optional paramter to the create_inventory function that accepts a LocalizedString, which will be the title of the GUI. If not supplied it defaults to "Script Inventory" as it is now.
Alt-F4 Author | Factorio Modder
My Mods: Hall of Fame | Better Victory Screen | Fluidic Power | Biter Power | Space Spidertron | Spidertron Dock | Weasel's Demolition Derby
Official Contributor to Space Exploration

DarkShadow44
Filter Inserter
Filter Inserter
Posts: 330
Joined: Thu Jun 01, 2017 12:05 pm
Contact:

Re: Custom title for Script Inventory GUI

Post by DarkShadow44 »

Good idea, always a fan of usability improvements. Knowing me I might take a short break and come back to "what is is again?"

User avatar
Stringweasel
Filter Inserter
Filter Inserter
Posts: 367
Joined: Thu Apr 27, 2017 8:22 pm
Contact:

Re: Custom title for Script Inventory GUI

Post by Stringweasel »

This has been implemented for 2.0
Alt-F4 Author | Factorio Modder
My Mods: Hall of Fame | Better Victory Screen | Fluidic Power | Biter Power | Space Spidertron | Spidertron Dock | Weasel's Demolition Derby
Official Contributor to Space Exploration

Post Reply

Return to “Implemented for 2.0”