-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clickable Keyframes show now right values and frames
- Loading branch information
Showing
6 changed files
with
29 additions
and
12 deletions.
There are no files selected for viewing
5 changes: 4 additions & 1 deletion
5
packages/AnimationsEditor-Core.package/AnimationsEditorKeyframe.class/instance/mouseDown..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
as yet unclassified | ||
mouseDown: anEvent | ||
anEvent redButtonPressed | ||
ifTrue: [self animationsEditor selectedTreeNode: self selectedProperty]. | ||
ifTrue: [ | ||
self setValueAndFrame. | ||
self animationsEditor selectedTreeNode: self selectProperty. | ||
]. |
13 changes: 13 additions & 0 deletions
13
...s/AnimationsEditor-Core.package/AnimationsEditorKeyframe.class/instance/selectProperty.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
as yet unclassified | ||
selectProperty | ||
|targetMorph property| | ||
targetMorph := self animationsEditor propertyList second. | ||
"targetMorph hasSubproperties | ||
ifTrue: [property := targetMorph subproperties keyAtValue: self track property]. | ||
^property asString." | ||
|
||
|
||
targetMorph hasSubproperties | ||
ifTrue: [property := targetMorph subproperties detect: [:each| self track property asString match: each asString]]. | ||
^property | ||
"^ self animationsEditor propertyList second subproperties at: self track property ." |
8 changes: 0 additions & 8 deletions
8
...AnimationsEditor-Core.package/AnimationsEditorKeyframe.class/instance/selectedProperty.st
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
...AnimationsEditor-Core.package/AnimationsEditorKeyframe.class/instance/setValueAndFrame.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
as yet unclassified | ||
setValueAndFrame | ||
|property selectedFrame selectedValue| | ||
property := self selectProperty. | ||
selectedFrame:= self frame. | ||
selectedValue := property targetValues at: self frame. | ||
self track property currentValue: selectedValue. | ||
self track property targetFrame: selectedFrame. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters