'From Squeakland 3.8.5976 of 25 August 2004 [latest update: #388] on 10 February 2005 at 8:11:32 pm'! "Change Set: eToyFriendlyScriptableButton Date: 10 February 2005 Author: Yoshiki Ohshima Make the etoy scriptable button etoy friendly."! !ScriptableButton methodsFor: 'script' stamp: 'yo 2/10/2005 20:09'! editButtonsScript "The user has touched my Scriptor halo-handle. Bring up a Scriptor on the script of the button." | cardsPasteUp cardsPlayer anEditor | cardsPasteUp := self pasteUpMorph. (cardsPlayer := cardsPasteUp assuredPlayer) assureUniClass. anEditor := scriptSelector ifNil: [scriptSelector := cardsPasteUp scriptSelectorToTriggerFor: self. cardsPlayer newTextualScriptorFor: scriptSelector. cardsPlayer scriptEditorFor: scriptSelector ] ifNotNil: [(cardsPlayer class selectors includes: scriptSelector) ifTrue: [cardsPlayer scriptEditorFor: scriptSelector] ifFalse: ["Method somehow got removed; I guess we start afresh" scriptSelector := nil. ^self editButtonsScript]]. anEditor showingMethodPane ifTrue: [anEditor toggleWhetherShowingTiles]. self currentHand attachMorph: anEditor! ! !ScriptableButton methodsFor: 'script' stamp: 'yo 2/10/2005 20:04'! isLikelyRecipientForMouseOverHalos self player ifNil: [^ false]. self player getHeading = 0.0 ifTrue: [^ false]. ^ true. ! !