I've been living under a rock for the past couple of months, not paying attention to the updates of Snap! that much, but I had an idea. Say you had a menu, that needs to be dynamic, like the ones in Snap! that update depending on the amount of objects/costumes.
What if, you added the ability for a set of blocks to be ran that would output a list that Snap! would use to generate the MenuMorph that the dropdown menu (such as the one shown below) would show?
Dynamic menus are one of the biggest losses when JavaScript was banned as a tool for generating them and anyway of getting something back would be great
Yeah, that'd be nice. One technical issue is that a bug in your custom menu code could result in an infinite loop in the UI. So we'd have to make sure you can escape from that.
Meanwhile, there's a custom menu feature built into the ASK AND WAIT block, and a library to help you construct custom menus.
I like this! Instead of using the mettaprogramming features to set a menu on multiple blocks (this is usally very laggy) this would be a nice alternitive
Oh, sure, I didn't mean to suggest that this is an unsolvable problem. Just that implementing it isn't quite like falling off a log. And we need a Snap! API for one input slot interrogating another input slot.