Add listbox gui element

User avatar
kumpu
Fast Inserter
Fast Inserter
Posts: 111
Joined: Wed Jun 07, 2017 10:10 am
Contact:

Add listbox gui element

Post by kumpu »

This already exists in the game but can't be used in mods, which is a shame. Please add it, nothing more to say here :D
User avatar
kumpu
Fast Inserter
Fast Inserter
Posts: 111
Joined: Wed Jun 07, 2017 10:10 am
Contact:

Re: Add listbox gui element

Post by kumpu »

If anyone is interested, I was able to achieve the desired result by abusing buttons.
I still think this should be added.
Attachments
listbox.png
listbox.png (2.92 KiB) Viewed 1532 times
listbox.lua
(2.33 KiB) Downloaded 82 times
User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1197
Joined: Wed May 18, 2016 4:55 pm
Contact:

Re: Add listbox gui element

Post by Mooncat »

For the image, you probably just need 3 pixels with 3 different colors.

If listbox element is implemented, it will be great if it optionally supports shift and ctrl operations like the ones in my Creative Mode:
Image
The current implementation is far from generic, so it is not easy to use it for another mod.
User avatar
kumpu
Fast Inserter
Fast Inserter
Posts: 111
Joined: Wed Jun 07, 2017 10:10 am
Contact:

Re: Add listbox gui element

Post by kumpu »

Oh that's kinda neat. You should make it generic and get it included into stdlib!
Post Reply

Return to “Implemented mod requests”