Squeak Class Documentation category index | class index  
 
UserScript
  category: Morphic-Scripting
  superclass: ScriptInstantiation
  subclasses:

Holds the ScriptEditorMorph structures for the current version of a user-defined tile script, as well as previous versions thereof.
currentScriptEditor The current version of the ScriptEditorMorph for the script
formerScriptEditors Earlier versions of the script, for recapturing via the Versions feature
(a dictionary, <timeStamp> -> ScriptEditorMorph

instance methods
  initialization
 

  script editor
  allScriptVersionsDo:
bringUpToDate
currentScriptEditor
currentScriptEditor:
formerScriptEditors
instantiatedScriptEditor
releaseCachedState

  textually coded
  becomeTextuallyCoded
isTextuallyCoded

  updating
  updateToPlayer:

  versions
  recreateScriptFrom:
revertScriptVersionFrom:
revertScriptVersionFrom:installing:
revertToLastSavedTileVersionFor:
saveScriptVersion:
savedTileVersionsCount

class methods
  no messages
 

instance methods
  initialization top  

  script editor top  
 

allScriptVersionsDo:


 

bringUpToDate


 

currentScriptEditor

Answer the currentScriptEditor value


 

currentScriptEditor:


 

formerScriptEditors

Answer the formerScriptEditors value


 

instantiatedScriptEditor

Return the current script editor, creating it if necessary


 

releaseCachedState

release all non-showing scriptors. What do we do about versions????


  textually coded top  
 

becomeTextuallyCoded


 

isTextuallyCoded


  updating top  
 

updateToPlayer:

Set aPlayer as the current player referenced by the receiver and its script editor


  versions top  
 

recreateScriptFrom:

Used to revert to old tiles


 

revertScriptVersionFrom:

Let user choose which prior tile version to revert to, and revert to it


 

revertScriptVersionFrom:installing:

Replace anEditor with a brought-up-to-date version of aSavedEditor


 

revertToLastSavedTileVersionFor:

revert to the last saved tile version


 

saveScriptVersion:


 

savedTileVersionsCount

Answer the number of saved tile versions of the script


class methods
  no messages top