Custom Input Dialog Box V2

link

turns this:

normal

into this:

this is very hack-y and very quickly thrown together so it is very buggy and can potentially lead to crashes. so be very careful if you plan to use this in your own projects, if you do, make backups just in case. other than that have fun go nuts.

alright this is mind-blowing...
is there any way to add custom input types (e.g. unevaluated slots that look like other input types OR elseif slots where the command(c shape) slots are replaced with ANY (UNEVALUATED) slots)?

This is like playing with a developer space.

Cool!

yeah theres a way, but its probably not feasible. like you could definitely code that in but itll probably be something that breaks when you try to save/reload the project. there might be some trick to get it like that but its hard to say

ok. anyone have any ideas? preferably something you can use and you don't have to enable JS to use it every time. (like this project!)

idk, but thats how i got the if else if block before it was added in. and you do have to enable js in this project. inside the custom input block (and default input) is just a few javascript commands that rewrite the code that loads up the input dialog box. but im not sure exactly what youre trying to do, could you explain further?

That would require js, because there is no way of creating new inputs in snap without javascript. Plus, when you load the project, the inputs would not be recognized by snap, so they would not be loaded correctly, so you would need to turn js on to add the new inputs, and then reload all the blocks.

not sure if you know this, but if you shift click the snap logo in the editor, top left corner, an extra option will show up in red called Switch to dev mode. its kind of hard to use but pretty fun to mess around with.

I know that, it actually taught me how to use Morphic. :slight_smile:

yeah I know.

oh.

This is an excellent illustration of why we don't add more input types. :~)

on the contrary, my third most viewed post, the original:

people like this stuff. yeah half of these are menus most of the rest bug out but its fun messing around with stuff youre not supposed to. im not saying this should be implemented into snap but i do think people enjoy it nonetheless.

also, please tell me what the %cmd input is

Screen Shot 2024-08-13 at 12.21.59 PM

it looks so cool
Screen Shot 2024-08-13 at 12.22.23 PM

I don't quite remember, but it was an alt/scrapped/older version of the ringified input.

From the manual, page 68:


Yeah that's all I meant.

Oh sweet baby Jesus there are so many inputs oh my god

Whenever I used this, it was so big that I had to shrink the website all the way down to 50%. How vast! fit_screen_24dp_FFFFFF