[squeak-dev] The Inbox: EToys-kfr.488.mcz
commits at source.squeak.org
commits at source.squeak.org
Mon Jan 2 19:10:21 UTC 2023
A new version of EToys was added to project The Inbox:
http://source.squeak.org/inbox/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
|