This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-06-21 00:26:36

kittenizator
Scratcher
Registered: 2010-01-13
Posts: 18

Menus like %k or %s

How to create new menus like %k (keys), %g (graphic effects)? Where is the information about them?

Offline

 

#2 2010-06-21 00:46:28

samurai768
Scratcher
Registered: 2009-07-21
Posts: 1000+

Re: Menus like %k or %s

Um, I don't know what you mean. Could you explain more?

BTW: I love your username  big_smile   big_smile   big_smile

Offline

 

#3 2010-06-21 00:51:24

kittenizator
Scratcher
Registered: 2010-01-13
Posts: 18

Re: Menus like %k or %s

look in BlockSpecs in Source Code!

BTW: I will kittenize all Scratch members!!! Meeeow!

Offline

 

#4 2010-06-21 07:43:26

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Menus like %k or %s

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!!  wink  wink

Last edited by ScratchReallyROCKS (2010-06-21 15:31:42)


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#5 2010-06-21 07:55:52

meew0
Scratcher
Registered: 2010-02-22
Posts: 1000+

Re: Menus like %k or %s

kittenizator wrote:

look in BlockSpecs in Source Code!

BTW: I will kittenize all Scratch members!!! Meeeow!

OH NO! I have been kittenized! Meow! [/off-topic]


http://i.imgur.com/mJV3j.pnghttp://i.imgur.com/HwWAX.pnghttp://i.imgur.com/sZ7Ui.pnghttp://i.imgur.com/0y6yh.pnghttp://i.imgur.com/nOC4l.png

Offline

 

#6 2010-06-21 08:06:14

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Menus like %k or %s

kittenizator wrote:

look in BlockSpecs in Source Code!

No, it's in CommandBlockMorph's instance's uncoloredArgMorphFor:


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#7 2010-06-21 09:17:51

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Menus like %k or %s

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!


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#8 2010-07-25 04:54:51

kittenizator
Scratcher
Registered: 2010-01-13
Posts: 18

Re: Menus like %k or %s

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

 

Board footer