Page 1 of 1

Custom title for Script Inventory GUI

Posted: Mon Jul 15, 2024 7:49 am
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.

Re: Custom title for Script Inventory GUI

Posted: Wed Aug 14, 2024 5:13 pm
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?"

Re: Custom title for Script Inventory GUI

Posted: Thu Aug 15, 2024 4:23 am
by Stringweasel
This has been implemented for 2.0