I am trying to place costome blocks in the "looks" section but I cant find where to put the code! Help?

Offline
LordAwesome123 wrote:
I am trying to place costome blocks in the "looks" section but I cant find where to put the code! Help?
Well, if you're looking under ScriptableScratchMorph, you can't put looks blocks there. Look under ScratchSpriteMorph's or ScratchStageMorph's blockspecs. (Or just go there, right click the code, select find, and enter "looks").

Offline
Greenatic wrote:
LordAwesome123 wrote:
I am trying to place costome blocks in the "looks" section but I cant find where to put the code! Help?
Well, if you're looking under ScriptableScratchMorph, you can't put looks blocks there. Look under ScratchSpriteMorph's or ScratchStageMorph's blockspecs. (Or just go there, right click the code, select find, and enter "looks").
Ahhhhhh. The looks are in ScratchStageMorph's! Thanks!

Offline
Well, the ScartchStageMorph section is only for the stage blocks, which means the block will only show in the stage scripts, and again, the ScratchSpriteMorph is only for sprites. If you want them in both, you will need to copy the blockspec into both of them, which would be really complicated. So insted, just insert the following code after the ")" and before the " )." in ScriptableScratchMorph:
'looks' ('text' #type #method)(Replace the false blockspec there * your ow blockspec). Then your code should look like this:
('%L contains %s' #b #list:contains: 'list' 'thing') 'looks' ('text' #type #method) ).Hope this helps!
Offline
The easy way: base your mod on BYOB. At some point in it, say ^self form or whatever else it is.
The hard way: I don't know.
Offline
Billybob-Mario wrote:
The easy way: base your mod on BYOB. At some point in it, say ^self form or whatever else it is.
The hard way: I don't know.
I think he was asking for something different.
But that's how Slash has the images... cool.
Offline