Skip to content

Commit

Permalink
Use always-incrementing morph number that is kept on delete.
Browse files Browse the repository at this point in the history
  • Loading branch information
luap42 committed Aug 1, 2022
1 parent 785736c commit 38bd573
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ buildComponents
createPropertyWith: aMorph
^ AnimationsEditorProperty new animationsEditor: self;
targetMorph: aMorph;
title: '' , (self propertyList size + 1), ' - ' , aMorph className;
title: '' , (self incrementMorphNumber), ' - ' , aMorph className;
yourself.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
accessing
incrementMorphNumber
| oldNumber |

oldNumber := self morphNumber.
self morphNumber: oldNumber + 1.
^ oldNumber.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
initialMorphNumber
^ 1.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
morphNumber: aNumber
morphNumber := aNumber.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
accessing
morphNumber
morphNumber
ifNil:[self morphNumber: self initialMorphNumber].

^ morphNumber.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"createColorPropertyOn:" : "FH 8/1/2021 18:45",
"createImageSourcePropertyOn:" : "LW 7/26/2021 16:42",
"createPositionPropertyOn:" : "LW 7/26/2021 16:43",
"createPropertyWith:" : "Noel Bastubbe 6/22/2022 12:14",
"createPropertyWith:" : "ps 8/2/2022 00:17",
"createRotationPropertyOn:" : "LW 7/26/2021 16:43",
"createSizePropertyOn:" : "LW 7/26/2021 16:43",
"createTextPropertyOn:" : "LW 7/26/2021 16:44",
Expand All @@ -45,10 +45,12 @@
"getDeepestMorph:at:" : "FH 8/1/2021 18:48",
"handleListenEvent:" : "FH 8/1/2021 18:48",
"handleLoadJsonButton" : "FH 8/1/2021 18:48",
"incrementMorphNumber" : "ps 8/2/2022 00:18",
"informationBar" : "DM 7/8/2020 15:03",
"informationBar:" : "DM 7/8/2020 15:03",
"informationBarText" : "FH 8/1/2021 18:49",
"informationBarText:" : "FH 8/1/2021 18:50",
"initialMorphNumber" : "ps 8/2/2022 00:16",
"initialize" : "lka 7/21/2022 16:35",
"initializeJsonHandler" : "FH 8/1/2021 18:49",
"initializePropertyEditorPanel" : "ob 7/12/2022 18:00",
Expand All @@ -66,6 +68,8 @@
"messageNoMorphSelected" : "ob 7/30/2022 16:48",
"messageNoPropertySelected" : "ob 7/30/2022 16:49",
"messagePlayAnimations" : "ob 7/30/2022 16:48",
"morphNumber" : "ps 8/2/2022 00:16",
"morphNumber:" : "ps 8/2/2022 00:15",
"numberButtons" : "lka 7/1/2022 16:04",
"playAnimations" : "lka 7/21/2022 16:56",
"propertyEditorPanel" : "DM 6/22/2020 01:27",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"timelines",
"propertyStartEnd",
"jsonHandler",
"timeline" ],
"timeline",
"morphNumber" ],
"name" : "AnimationsEditor",
"pools" : [
],
Expand Down

0 comments on commit 38bd573

Please sign in to comment.