-
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.
- Loading branch information
Showing
12 changed files
with
62 additions
and
14 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
...ges/AnimationsEditor-Core.package/AnimationsEditor.class/instance/addSelectedMorphFor..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,5 +1,6 @@ | ||
buildComponents | ||
addSelectedMorphFor: anEvent | ||
self addTargetMorph: (self getDeepestMorph: self currentHand selectedObject at: anEvent position). | ||
self selectedTreeNode: (self addTargetMorph: (self getDeepestMorph: self currentHand selectedObject at: anEvent position)). | ||
self currentHand removeMouseListener: self. | ||
|
||
self updateInformationText: 'Added new Morph'. |
31 changes: 31 additions & 0 deletions
31
packages/AnimationsEditor-Core.package/AnimationsEditor.class/instance/deleteMorph..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,31 @@ | ||
messaging | ||
deleteMorph: aProcess | ||
"NEEDS REFACTORING" | ||
"selected tree node needs to be set to some property when the morph is added" | ||
"not tested on other morphs apart from normal morph" | ||
self selectedTreeNode ifNil: [^ 'break']. | ||
|
||
self propertyList copy do: [:each | | ||
Transcript show: self propertyList first ; cr. | ||
|
||
"(self selectedTreeNode targetMorph = each targetMorph or: ((self selectedTreeNode isFlexed) ifTrue: [self selectedTreeNode owner = each targetMorph] ifFalse: [false])) " | ||
(self selectedTreeNode targetMorph = each targetMorph or: (self selectedTreeNode targetMorph hasSubmorphs ifTrue: [self selectedTreeNode targetMorph submorphs first = each targetMorph] ifFalse: [false])) "checks if selected tree node or it's child (because it can be a transformation morph that has target morph a child) the same as the one of the morphs in the property list" | ||
ifTrue: [self selectedTreeNode targetMorph removeFlexShell. self propertyList remove: each. each targetMorph abandon. ].]. | ||
|
||
"to do: delete the JSON! for that look in animations editor property animated >> deleteAllKeyframes" | ||
self propertyTreeMorph update: self propertyTreeMorph getChildrenSelector. | ||
|
||
"need to terminate process for each property" | ||
|
||
"self selectedTreeNode process terminate." "doesnot work" | ||
|
||
"self propertyTreeMorph submorphs do: [:every | every process terminate]." "not right place to terminate" | ||
self propertyEditorPanel submorphs do: [:each| each abandon]. "clear property editor panel" | ||
self timeline submorphs do: [:each| each abandon]. "leaves the background and scroll panel from timeline. Fiqure out how to delete it" | ||
Transcript show: 'process'; cr. | ||
Transcript show: aProcess isBlocked; cr. | ||
aProcess terminate. | ||
Transcript show: 'process2'; cr. | ||
|
||
|
||
|
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
8 changes: 4 additions & 4 deletions
8
...imationsEditor-Core.package/AnimationsEditorPropertyAnimated.class/instance/initialize.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,12 +1,12 @@ | ||
initialization | ||
initialize | ||
"|planProcess|" | ||
|
||
|
||
super initialize. | ||
self isActivated: false. | ||
self addStartFrame. | ||
"planProcess := [ | ||
self process: [ | ||
[ 1 seconds asDelay wait. | ||
self targetMorph isInWorld ifFalse: [self animationsEditor deleteMorph. planProcess terminate.]. the question is if the process actually terminates | ||
self targetMorph isInWorld ifFalse: [self animationsEditor deleteMorph: self process.]. | ||
] repeat. | ||
] fork." | ||
] fork. |
3 changes: 3 additions & 0 deletions
3
...AnimationsEditor-Core.package/AnimationsEditorPropertyAnimated.class/instance/process..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,3 @@ | ||
accessing | ||
process: anObject | ||
process := anObject |
3 changes: 3 additions & 0 deletions
3
.../AnimationsEditor-Core.package/AnimationsEditorPropertyAnimated.class/instance/process.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,3 @@ | ||
accessing | ||
process | ||
^ process |
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
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
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