aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/TimelinePanel.reel
diff options
context:
space:
mode:
authorJonathan Duran2012-03-27 14:07:30 -0700
committerJonathan Duran2012-03-27 14:07:30 -0700
commit06f247d881f4cfd790d635c6e310ae7f97724339 (patch)
tree65479300389d3919ca2eeef29a24ab4f63c9c773 /js/panels/Timeline/TimelinePanel.reel
parent7bcc313f6d8b3b0228e11bd4eee0278b1142e1f8 (diff)
parent6a327041ebd9b921ddeacb6582a143ac8a12c5c3 (diff)
downloadninja-06f247d881f4cfd790d635c6e310ae7f97724339.tar.gz
Merge branch 'Timeline-latest-change' of github.com:ntfx47/ninja-internal into TimelineUber
Conflicts: js/panels/Timeline/TimelinePanel.reel/css/TimelinePanel.css Signed-off-by: Jonathan Duran <jduran@motorola.com>
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel')
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.html19
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js38
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/css/TimelinePanel.css8
3 files changed, 64 insertions, 1 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.html b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.html
index 3833a891..9eb126e0 100644
--- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.html
+++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.html
@@ -119,6 +119,24 @@
119 119
120 } 120 }
121 }, 121 },
122
123 "timelineZoomSlider":{
124 "module":"js/components/slider.reel",
125 "name":"Slider",
126 "properties":{
127 "element":{"#":"tl_slider"},
128 "maxValue" : 10000,
129 "minValue" : 1000
130 },
131 "bindings": {
132 "value": {
133 "boundObject": {"@": "owner"},
134 "boundObjectPropertyPath": "millisecondsOffset",
135 "oneway": false
136 }
137 }
138 },
139
122 "endHottext" : { 140 "endHottext" : {
123 "module": "js/components/hottextunit.reel", 141 "module": "js/components/hottextunit.reel",
124 "name": "HotTextUnit", 142 "name": "HotTextUnit",
@@ -168,6 +186,7 @@
168 </div> 186 </div>
169 187
170 <div id="timeline_gutter" class="timelinegutter"> 188 <div id="timeline_gutter" class="timelinegutter">
189 <div id="tl_slider" class="tl_slider"></div>
171 <input id="end_hottext" class="endhottext"> 190 <input id="end_hottext" class="endhottext">
172 </div> 191 </div>
173 </div> 192 </div>
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
index 5e64c066..cb133f58 100644
--- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
+++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
@@ -137,10 +137,33 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
137 } 137 }
138 }, 138 },
139 139
140 millisecondsOffset:{ 140 _millisecondsOffset:{
141 value:1000 141 value:1000
142 }, 142 },
143 143
144 millisecondsOffset:{
145 get:function () {
146 return this._millisecondsOffset;
147 },
148 set:function (newVal) {
149 if (newVal !== this._millisecondsOffset) {
150 this._millisecondsOffset= newVal;
151 this.drawTimeMarkers();
152 NJevent('tlZoomSlider',this);
153 }
154 }
155 },
156
157 tweenarray:{
158 value:[],
159 writable:true
160 },
161
162 tempArray:{
163 value:[],
164 writable:true
165 },
166
144 _masterDuration:{ 167 _masterDuration:{
145 serializable:true, 168 serializable:true,
146 value:0 169 value:0
@@ -487,6 +510,14 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
487 } 510 }
488 // Feed the new array of objects into the repetitions. 511 // Feed the new array of objects into the repetitions.
489 this.arrLayers = this.temparrLayers; 512 this.arrLayers = this.temparrLayers;
513 }else if(this.application.ninja.breadCrumbClick){
514 var parentNode = this.application.ninja.currentSelectedContainer;
515 for (myIndex = 0; parentNode.children[myIndex]; myIndex++) {
516 this._openDoc = true;
517 this.restoreLayer(parentNode.children[myIndex]);
518 }
519 this.arrLayers = this.temparrLayers;
520
490 } 521 }
491 522
492 // After recreating the tracks and layers, store the result in the currentDocument. 523 // After recreating the tracks and layers, store the result in the currentDocument.
@@ -770,6 +801,11 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
770 drawTimeMarkers:{ 801 drawTimeMarkers:{
771 value:function () { 802 value:function () {
772 this.timeMarkerHolder = document.createElement("div"); 803 this.timeMarkerHolder = document.createElement("div");
804
805 if(this.time_markers.children[0]){
806 this.time_markers.removeChild(this.time_markers.children[0]);
807 }
808
773 this.time_markers.appendChild(this.timeMarkerHolder); 809 this.time_markers.appendChild(this.timeMarkerHolder);
774 var i; 810 var i;
775 var totalMarkers = Math.floor(this.time_markers.offsetWidth / 80); 811 var totalMarkers = Math.floor(this.time_markers.offsetWidth / 80);
diff --git a/js/panels/Timeline/TimelinePanel.reel/css/TimelinePanel.css b/js/panels/Timeline/TimelinePanel.reel/css/TimelinePanel.css
index b9d45979..7dddaba7 100644
--- a/js/panels/Timeline/TimelinePanel.reel/css/TimelinePanel.css
+++ b/js/panels/Timeline/TimelinePanel.reel/css/TimelinePanel.css
@@ -272,6 +272,7 @@
272 font-size: 12px; 272 font-size: 12px;
273 text-shadow: 1px 1px 1px black; 273 text-shadow: 1px 1px 1px black;
274 color: white; 274 color: white;
275 margin-top: 0%;
275} 276}
276.timeline-disabled { 277.timeline-disabled {
277 position: absolute; 278 position: absolute;
@@ -287,3 +288,10 @@
287.timeline-dnd-helper { 288.timeline-dnd-helper {
288 -webkit-transform: scale(.9, .9); 289 -webkit-transform: scale(.9, .9);
289} 290}
291.tl_slider{
292 width: 65px;
293 height: 5px;
294 background: none;
295 float:left;
296 margin-left: 5%;
297}