diff options
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js')
-rw-r--r-- | js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js index af358468..12b481de 100644 --- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js +++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | |||
@@ -910,6 +910,7 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { | |||
910 | this.eventManager.addEventListener("updatedID", this.handleLayerIdUpdate.bind(this), false); | 910 | this.eventManager.addEventListener("updatedID", this.handleLayerIdUpdate.bind(this), false); |
911 | this.checkable_lock.addEventListener("click",this.handleLockLayerClick.bind(this),false); | 911 | this.checkable_lock.addEventListener("click",this.handleLockLayerClick.bind(this),false); |
912 | this.checkable_visible.addEventListener("click",this.handleLayerVisibleClick.bind(this),false); | 912 | this.checkable_visible.addEventListener("click",this.handleLayerVisibleClick.bind(this),false); |
913 | this.play_button.addEventListener("click", this.handlePlayButtonClick.bind(this), false); | ||
913 | 914 | ||
914 | this.addPropertyChangeListener("currentDocument.model.domContainer", this); | 915 | this.addPropertyChangeListener("currentDocument.model.domContainer", this); |
915 | 916 | ||
@@ -1085,6 +1086,21 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { | |||
1085 | } | 1086 | } |
1086 | }, | 1087 | }, |
1087 | 1088 | ||
1089 | handlePlayButtonClick:{ | ||
1090 | value:function(ev){ | ||
1091 | this.application.ninja.appModel.livePreview = !this.application.ninja.appModel.livePreview; | ||
1092 | |||
1093 | if (this.application.ninja.appModel.livePreview) { | ||
1094 | this.play_button.classList.remove("playbutton"); | ||
1095 | this.play_button.classList.add("pausebutton"); | ||
1096 | |||
1097 | } else { | ||
1098 | this.play_button.classList.remove("pausebutton"); | ||
1099 | this.play_button.classList.add("playbutton"); | ||
1100 | } | ||
1101 | } | ||
1102 | }, | ||
1103 | |||
1088 | handleKeyframeShortcut:{ | 1104 | handleKeyframeShortcut:{ |
1089 | value:function(action){ | 1105 | value:function(action){ |
1090 | var tempEv = {}; | 1106 | var tempEv = {}; |