What?
A gui element that contains the player inventory.
Why?
To mimic vanilla machine guis.
Explanation:
In the base game every time you open a machine gui you also additionally get a frame containing the player inventory so you can easily pick up items from it and drop them into a machine. But when trying to make a modded machine with a custom gui then currently i seem to have no other choice but to reimplement the whole thing in lua. Apart from that being a certain amount of work it can also not properly mimic the "vanilla inventory experience" for items with advanced tooltips/icons like blueprints/power-armor, as all mod-gui buttons are icon-based and carry no reference to the original item-stack.
As far as i can tell the "Character" gui frame is pretty much the same size and shape regardless of if you open a chest, roboport, assembler, yourself, or anything else. Thus width should be fixed to not mess up the row order. Height would need to be customizable to make it fit to the size of surrounding elements (i.e. vanilla chest gui / player crafting view).
The new gui element should also include all vanilla button interactions (take/filter/open).
New gui element type: "player-inventory"
- eradicator
- Smart Inserter
- Posts: 5206
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
New gui element type: "player-inventory"
- Attachments
-
- player-gui.jpg (115.2 KiB) Viewed 1278 times
- bobingabout
- Smart Inserter
- Posts: 7352
- Joined: Fri May 09, 2014 1:01 pm
- Contact:
Re: New gui element type: "player-inventory"
I support this suggestion.
- eradicator
- Smart Inserter
- Posts: 5206
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: New gui element type: "player-inventory"
@FFF248: Don't say i never asked for it :D.