TurboWarp/extensions

Support for list input type

zacoons opened this issue · 4 comments

It'd be great if users could put a list as an input to my block.
e.g.
image

My current workaround is to just have them put in the name of the list and then my code looks for that list in the vm variables.
But that's kinda janky and it would cause issues when they rename their list.

you tried using a dynamic menu?..

@LilyMakesThings u mean have a menu from which they can pick the name of a list?
not a bad idea, I'll see how it goes.

Nope, doesn't update the value when the list is renamed. But it's better than what I had before so I'll keep it for now. I still think it'd be a good idea to add support for list inputs to blocks.

image

Nope, doesn't update the value when the list is renamed. But it's better than what I had before so I'll keep it for now. I still think it'd be a good idea to add support for list inputs to blocks.

image

Use variable IDs instead then, and have the menu display the name as the text and the id as the value