I've noticed that it's possible to get squeak to create a text-box morph in the Scratch world, how hard do you reckon it would be to code some way of opening a text-box morph of a set width and height and then reading the contents of the box into a variable? It would make typing things into Scratch so much nicer as it provides multiline strings and no stamping!
Offline
For the textbox itself, not hard at all! However, if you plan on making it like the ask box, then very hard (you need to mess with the ExecutionEngine. It's basically preemptive multitasking, what Windows made in a year, all re-coded for Scratch).
But if what you mean is maybe transform variables into textboxes (the only simple way of having multiple ones), so adding 'editable' to the modes (normal, big, slider), I think I'd be happy to try it! *adding to todo list*
Offline
sparks wrote:
I was sort of picturing getting the textbox morph up and then simply having the contents of it reported live through a reporter block.
Yeah, but I was thinking that to make it simpler these could be integrated into variable watchers! They're already updated dynamically with sliders, but it would be cool if this also allowed text.
Last edited by LS97 (2011-08-16 14:02:36)
Offline
I think a Scratch method for a dialogue box with a multiline string input must exist in Scratch somewhere, there's one in the project notes dialogue and the upload dialogue. Perhapse this could be used and returned?
Offline
sparks wrote:
I think a Scratch method for a dialogue box with a multiline string input must exist in Scratch somewhere, there's one in the project notes dialogue and the upload dialogue. Perhaps this could be used and returned?
If you're talking about a dialog, that's easy. But if you're talking about displaying it on-screen and returning the value dynamically, I wouldn't even try that
Oh, and it doesn't exist. There's a multiline textbox morph, and a dialog, which put together make that. But not a one-line function.
Last edited by LS97 (2011-08-16 15:04:17)
Offline
sparks wrote:
Aw, oh well.
I see you're experimenting without your sig
Still, I think it would be pretty cool to have a patch that allows text variable input. Why don't you try that?
Offline
sparks wrote:
My new project's name was too long, and then I replaced the wrong tinyurl when I replaced the first API with a smaller font size! It's good now though!
Hmm, it didn't show up in friends' latest yet
Oh well, viewed and commented(ing)
Offline
Thanks, it's not updated it (I added a threshold variable) or processed the love-it I temporarily gave it to check my sig was okay... that was 10 mins ago!
The number of projects on the Scratch site hasn't gone up in at least that too, I think Scratch may be having server problems...
Offline
sparks wrote:
Thanks, it's not updated it (I added a threshold variable) or processed the love-it I temporarily gave it to check my sig was okay... that was 10 mins ago!
The number of projects on the Scratch site hasn't gone up in at least that too, I think Scratch may be having server problems...
Actually, it works fine for me. I only see one love-it (mine), so maybe yours didn't fully work?
Offline
sparks wrote:
Oh yes, they're registered now... though I removed my love.
Cool. Speaking of signature testing and PHP, care to have a look at my other thread I just posted?
Offline