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

#1 2010-10-09 18:47:02

brantsmith
Scratcher
Registered: 2010-04-01
Posts: 21

Smalltalk argument and identifier help

I am having trouble locating the place in the scratch (browser) code where the type identifier or block arguments are coded. EXAMPLE:
        <point in direction( 

Code:

  ('point in direction -->%d<--' #- #heading: 90).

in this example a custom menu was created, but where is the code that makes the custom menu. or in the example of  <when green flag clicked>

Code:

    ('when %m clicked' -->#S<-- #-)

in this example -> #S <--  makes the block look like it does. but where is the code that programs  -> #S <-??? Help would be greatly apreciated. thanks


http://gbryouth.webstarts.com/uploads/event2.jpg

Offline

 

#2 2010-10-09 20:28:22

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Smalltalk argument and identifier help

%'s are in CommandBlockMorph's uncoloredArgMorphFor:
type symbols are in ScriptableScratchMorph's blockFromSpec:color:


nXIII

Offline

 

Board footer