This will be hard to release because of main scratch conception: all build of sprites. So, now we can only draw our own widgets...
Last edited by Nikimax (2008-10-24 06:02:32)
Offline
Benbidean wrote:
Scratch needs to enable users to enter text and numeric data in response to on screen prompts as the program is running.
I agree with you on this. It would enable a lot of great projects. I'm pretty sure the Scratch Team is thinking about the best way to do that. Any thoughts on how you think those capabilites should be integrated into the Scratch model? What new blocks do you visualize? Or additional capabilites added to existing blocks?
I would hope that, along with this capability, the Scratch Team would add some basic string functions so that the text values entered at run time can be processed properly. Something like the regular expressions in Python would be nice...but probably not realistic. At a bare minimum, I feel we should be able to map a text string into a list and vice-versa (without the spaces between the letters). Then, we could write our own string functions. Maybe we could even use something like Jen's Build Your Own Block format to encapsulate them neatly!
Offline
I would incorporate it into variables, adding a "Input data for [variablename]" block to the permutaions availabe for setting a variable or a list entry.
Use of this block would result in a pop-up text entry box into which the user could type. When they press return, or click the built in "ok" box, it vanishes and sets the given variable (or list item) to whatever has been typed in the box.
Offline
do you mean a textbox that can be typed into on the program? If so I think the easiest method this could be achieved is through modifying the properties of a sprite so that text cannn be inserted to, much like the one im using now to type in what im saying
Offline
you can do that in lists in development mode.
Offline
likegames wrote:
you can do that in lists in development mode.
Yeah, but not online or anything.
My idea would be to have a new type of variable display. There's already normal, slider, and large, why not add text box (which hopefully would be resizable like lists, but only in development mode)? With the introduction of text strings, you'd think they'd need a way better to use them!
Last edited by coolstuff (2008-11-01 08:50:01)
Offline
number typing can already be done in variables, without the use of list ect... but a new block under the Variables section would be great. It could be changed to either fill, out lined, or blank. The max width/height can be changed using blocks and a scroll bar automaticly apears when nessacery.
Offline
you should be able to type in text on and offline. this can be simulated with a list and if
"item 1 of list= R" and stuff. this could be like entering a username!
Offline