How to create new menus like %k (keys), %g (graphic effects)? Where is the information about them?
Offline
Um, I don't know what you mean. Could you explain more?
BTW: I love your username
Offline
look in BlockSpecs in Source Code!
BTW: I will kittenize all Scratch members!!! Meeeow!
Offline
This is how you do it:
(1) Go into Scratch-Blocks in the System browser.
(2) then follow this directory: Scratch-Blocks>>CommandBlockMorph>>(instance section)>>all>>uncoloredArgMorphFor:
(3) Above where it says ^ExpressionArgMorph new numExpression: '10' type this: $q (or whatever new letter you want) = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: '(what you wan't the list to be for, like sounds)Names].
(4) go into Scratch-Objects>>ScriptableScratchMorph>>(instance section)>>other ops then select any category in there, highlight it all and type: (whatever you want your list to be)Names, like keyNames, and type ^#('your first option' 'your second' 'your third') and so on.
(5) save that all, highlight it and type (whatever you wan't): t1
'item 1 (from what you typed before)' = t1 ifTrue: [^ what you wan't it to do]
and so on with the other options.
(6) Then in the blockspecs, type ('block name %(what ever letter you used)' #r or - or b #(the name of the second method you made)
there you go.
Ahh! I've been kittenized!!
Last edited by ScratchReallyROCKS (2010-06-21 15:31:42)
Offline
henley wrote:
kittenizator wrote:
look in BlockSpecs in Source Code!
No, it's in CommandBlockMorph's instance's uncoloredArgMorphFor:
I explained the whole thing in my previous post!
Offline
ScratchReallyROCKS wrote:
henley wrote:
kittenizator wrote:
look in BlockSpecs in Source Code!
No, it's in CommandBlockMorph's instance's uncoloredArgMorphFor:
I explained the whole thing in my previous post!
Thank you!!!
Offline