I added multiline, but I haven't added resizing yet. Here.
I'm trying to add resizing to mine, but I get a weird error:
I just added the resizing! It requires the watchers to have 90 degree corners, but it works! Just check the link I gave here.
It is OK.
Now we just need to be able to get the name of a variable. I.e.:
Edit: the identity function works for that:
No we don't, they are watchers. It displays a variable.
Oh.
At least a single </span>
endtag isn't that bad.
Apparently what we really need is the VALUE OF block of this:
which returns the value of a variable name given to it. I need it for this:
Edit: It's in the Create Variables library:
I don't want to use JS.
I don't see how else to get a variable from a string, unless you want to completely remake variables in pure Snap!.
Edit: I'm actually going to go do exactly that.
Edit 2: And it's here.
For global i sprite local variable but not the script vars.
I didn't know that! Thank you!
Yes, it seems slightly under-dcoumented
as the menu shows only the sprite local variables.
I wonder what can get that.
If you need script vars You may experiment with
but I see no way to get the variable name from a single parameter in a vanilla snap.
I'm thinking of using the (scripts) block someone made, and getting the value of a script variable from it.