I didn't see a topic on this, but how do you add things such as %s and %n?
Offline
Really? You haven't seen any topics on it? Hmm...
Go to Scratch-Blocks, CommandBlockMorph, private, and choose the lowest choice, I think that's where you can add and delete them.
Offline
henley wrote:
Really? You haven't seen any topics on it? Hmm...
Go to Scratch-Blocks, CommandBlockMorph, private, and choose the lowest choice, I think that's where you can add and delete them.
Yes you can. its under uncoleredArgMorphFor, to be exact. just copy this strip:
$Letter = t2 ifTrue: [^ ChoiceOrExpressionArgMorph new getOptionsSelector: #nameofselector;choice: 'Defaultchoice'].
Then go to ScratchObjects>ScriptableScratchMorph>(instance)>Other> and add:
nameofselector
^ #('1st item' '2nd item' 'Ect.' )
when you make your instance, do somthing along the lines of
t1= '1st item' ifTrue: [COMMAND]
t1= '2nd item' ifTrue: [COMMAND]
Last edited by hello12345678910 (2011-01-18 11:42:40)
Offline