[squeak-dev] The Trunk: EToys-kfr.488.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Jan 11 14:40:50 UTC 2023


Marcel Taeumel uploaded a new version of EToys to project The Trunk:
http://source.squeak.org/trunk/EToys-kfr.488.mcz

==================== Summary ====================

Name: EToys-kfr.488
Author: kfr
Time: 2 January 2023, 8:10:13.692142 pm
UUID: ef0725e1-077c-e14c-87a0-32c2444d0a4c
Ancestors: EToys-ct.486

Add a undo button to FreeCell

=============== Diff against EToys-ct.486 ===============

Item was changed:
  ----- Method: FreeCell>>makeControls (in category 'initialization') -----
  makeControls
  
  	^self makeControlBar
  		addMorph: AlignmentMorph newVariableTransparentSpacer;
+ 		addMorph: self makeUndoButton;
  		addMorph: self makeHelpButton;
  		addMorph: self makeQuitButton;
  		addMorph: self makeStatisticsButton;
  		addMorph: self makeGameNumberDisplay;
  		addMorph: self makePickGameButton;
  		addMorph: self makeSameGameButton;
  		addMorph: self makeNewGameButton;
  		addMorph: self makeElapsedTimeDisplay;
  		addMorph: self makeCardsRemainingDisplay;
  		yourself.!

Item was added:
+ ----- Method: FreeCell>>makeUndoButton (in category 'initialization') -----
+ makeUndoButton
+ 	^ self
+ 		buildButton: SimpleButtonMorph new
+ 		target: self
+ 		label: 'Undo' translated
+ 		selector: #undo!

Item was added:
+ ----- Method: FreeCell>>undo (in category 'actions') -----
+ undo
+ 
+ 	^ self commandHistory undoOrRedoCommand!



More information about the Squeak-dev mailing list