One of the features I like best about math blocks is the ability to exchange their operator simply by right clicking on a math block and selecting the desired alternative, turning a "+" into a "-" etc. That way you don't have to tear apart complex block stacks just to get rid of a "wrong" block, and then reassemble the script after getting the "right" one. The same wish often occurs to me when I use other blocks as well, like wanting to turn a "broadcast" block into a "broadcast and wait" block at some later time.
I've found out, that adding such options to the right-click menu of each command block is actually rather easy using the Scratch source code, and I have just now finished a little patch for just that:
http://scratch.mit.edu/projects/Jens/103320
Thought I might share it with anybody who's interested.
Offline
I have just completed and updated my project code with additional options for stage blocks, reporter blocks and variable blocks. Now you can also:
- change any variable "set" block to became a "change" block (and vice-versa)
- associate any variable block (accessor or reporter) with another variable
This last feature can help you manually rename variables in your project, without having to tear apart/reassemble all of your scripts.
For those Squeakers of you with slow connections just interested in the Squeak code, I've also posted it on SqueakMap: http://map.squeak.org/package/9da38346-bfb4-4c8e-ad5d-5dcebaf12667/autoversion/2
Offline
If you put the first code into the Scratch Source Code, how is it possible to 'update' to the newer version?
Offline
relyt12101: You can always "unlock" the application you built using the Scratch source code by shift clicking on the "Extras" button and selecting "Exit user mode". You can then file in additional patches (in Smalltalk they're called "changesets") and again save the image (your application) in user mode. If you file in the updated code from my project you will automatically get an updated version of your own Scratch-Power-Editor application.
Perhaps I should post a real "patch", i.e. an installer which would add another finalized image with my editing features (and the xml functions as well) to the Scratch folder and add an additional entry to the windows shell to load any Scratch project either into Scratch, to run it in full screen mode, or to edit it using these "hacked" features... This installable patch would be about 2 MB in size. Problem is, my own website doesn't have that kind of capacity.
Offline
If I can get hold of it somehow, I can probably host it on my site.
SB
Offline
Would this make the resultant scratch projects incompatable with Scratch 1.2.1?
Offline
ScipioBellorum wrote:
If I can get hold of it somehow, I can probably host it on my site.
Good! I'll put it together as soon as I'll find some time (in the meantime you can just file in the changeset into your downloaded copy of the Scratch source code).
Mayhem wrote:
Would this make the resultant scratch projects incompatable with Scratch 1.2.1?
Absolutely not! The projects edited using these features are 100% compatible, since I'm neither introducing any new blocks nor changing the syntax of Scratch, I'm just adding some editing options for blocks, enhancing what can already be done with math blocks for other blocks as well (therefore the project itself is not *that* original after all).
Offline
Sweet!
Offline
When you say:
file in the changeset into your downloaded copy of the Scratch source code
What do you mean exactly?
SB
Offline
ScipioBellorum: I was suggesting to do as shown in my little project, i.e. download the Scratch source code and my little project, copy/paste the Squeak source code in the unconnected think block into a Squeak workspace and select "file it in".
Offline
Jens - I've downloaded it and it works really well. Great work! You can find the download page here. Should I change anything?
MIT Scratch people - Is this ok? I just want to make sure we aren't breaking any copyright rules or anything. Thanks.
SB
Offline
ScipioBellorum, fantastic work! But your installation instructions are a bit scary..., and I only wrote a tiny changeset of about 12 Kb, and not the whole application, which was developed - as we all know - by MIT's LLK. Also, probably we shouldn't be naming it anything with "Scratch" and include the original license with the package. I'll work out an installation routine which will just "plug" this into the Scratch installation without harming it...
Offline
Sorry, I wasn't sure whether to tell people to download the scratch source code and then file in the changeset or just download the whole thing in one. I thought the later would be easier.
Just tell me waht to change and I'll do so as soon as possible.
SB
Offline
Oh! Thanks! It's fixed now and I've changed the name to Options Patch for now.
SB
Last edited by ScipioBellorum (2008-02-23 18:38:19)
Offline