diff options
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel')
-rw-r--r-- | js/panels/Timeline/TimelinePanel.reel/TimelinePanel.html | 61 | ||||
-rw-r--r-- | js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | 1424 | ||||
-rw-r--r-- | js/panels/Timeline/TimelinePanel.reel/css/TimelinePanel.css | 424 | ||||
-rw-r--r-- | js/panels/Timeline/TimelinePanel.reel/images/icon-checkmark.png | bin | 0 -> 1083 bytes | |||
-rw-r--r-- | js/panels/Timeline/TimelinePanel.reel/images/icon-gear.png | bin | 0 -> 1397 bytes | |||
-rw-r--r-- | js/panels/Timeline/TimelinePanel.reel/scss/TimelinePanel.scss | 373 | ||||
-rw-r--r-- | js/panels/Timeline/TimelinePanel.reel/scss/config.rb | 10 |
7 files changed, 1345 insertions, 947 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.html b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.html index 14c5f1c8..1b7132b9 100644 --- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.html +++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.html | |||
@@ -19,11 +19,9 @@ | |||
19 | "element": {"#": "timeline_panel"}, | 19 | "element": {"#": "timeline_panel"}, |
20 | "user_layers": {"#": "user_layers"}, | 20 | "user_layers": {"#": "user_layers"}, |
21 | "track_container": {"#": "right_inside"}, | 21 | "track_container": {"#": "right_inside"}, |
22 | "timeline_leftpane" : {"#" : "timeline_leftpane"}, | 22 | "timeline_leftpane" : {"#" : "leftpane_inside"}, |
23 | "layer_tracks": {"#": "layer_tracks"}, | 23 | "layer_tracks": {"#": "layer_tracks"}, |
24 | "master_track": {"#": "master_track"}, | 24 | "master_track": {"#": "master_track"}, |
25 | "newlayer_button": {"#": "newlayer_button"}, | ||
26 | "deletelayer_button": {"#": "deletelayer_button"}, | ||
27 | "time_markers" : {"#": "timeline_markers"}, | 25 | "time_markers" : {"#": "timeline_markers"}, |
28 | "layerRepetition" : {"@": "repetition1"}, | 26 | "layerRepetition" : {"@": "repetition1"}, |
29 | "trackRepetition" : {"@" : "repetition2"}, | 27 | "trackRepetition" : {"@" : "repetition2"}, |
@@ -34,7 +32,11 @@ | |||
34 | "container_tracks" : {"#" : "container-tracks"}, | 32 | "container_tracks" : {"#" : "container-tracks"}, |
35 | "end_hottext" : {"@" : "endHottext"}, | 33 | "end_hottext" : {"@" : "endHottext"}, |
36 | "container_layers" : {"#" : "container-layers"}, | 34 | "container_layers" : {"#" : "container-layers"}, |
37 | "timeline_disabler" : {"#" : "timeline-disabler"} | 35 | "timeline_disabler" : {"#" : "timeline-disabler"}, |
36 | "checkable_relative" : {"#" : "checkable_relative"}, | ||
37 | "checkable_absolute" : {"#" : "checkable_absolute"}, | ||
38 | "checkable_animated" : {"#" : "checkable_animated"}, | ||
39 | "tl_configbutton" : {"#" : "tl-configbutton"} | ||
38 | } | 40 | } |
39 | }, | 41 | }, |
40 | 42 | ||
@@ -77,7 +79,12 @@ | |||
77 | "boundObject" : {"@" : "repetition1"}, | 79 | "boundObject" : {"@" : "repetition1"}, |
78 | "boundObjectPropertyPath" : "objectAtCurrentIteration.layerData", | 80 | "boundObjectPropertyPath" : "objectAtCurrentIteration.layerData", |
79 | "oneway" : false | 81 | "oneway" : false |
80 | } | 82 | }, |
83 | "bindingPoint" : { | ||
84 | "boundObject" : {"@" : "repetition1"}, | ||
85 | "boundObjectPropertyPath" : "objectAtCurrentIteration.layerData.triggerBinding", | ||
86 | "oneway" : false | ||
87 | } | ||
81 | } | 88 | } |
82 | }, | 89 | }, |
83 | 90 | ||
@@ -107,9 +114,33 @@ | |||
107 | "boundObject" : {"@" : "repetition2"}, | 114 | "boundObject" : {"@" : "repetition2"}, |
108 | "boundObjectPropertyPath" : "objectAtCurrentIteration.layerData", | 115 | "boundObjectPropertyPath" : "objectAtCurrentIteration.layerData", |
109 | "oneway" : false | 116 | "oneway" : false |
117 | }, | ||
118 | "bindingPoint" : { | ||
119 | "boundObject" : {"@" : "repetition2"}, | ||
120 | "boundObjectPropertyPath" : "objectAtCurrentIteration.layerData.triggerBinding", | ||
121 | "oneway" : false | ||
110 | } | 122 | } |
123 | |||
111 | } | 124 | } |
112 | }, | 125 | }, |
126 | |||
127 | "timelineZoomSlider":{ | ||
128 | "module":"js/components/slider.reel", | ||
129 | "name":"Slider", | ||
130 | "properties":{ | ||
131 | "element":{"#":"tl_slider"}, | ||
132 | "maxValue" : 10000, | ||
133 | "minValue" : 1000 | ||
134 | }, | ||
135 | "bindings": { | ||
136 | "value": { | ||
137 | "boundObject": {"@": "owner"}, | ||
138 | "boundObjectPropertyPath": "millisecondsOffset", | ||
139 | "oneway": false | ||
140 | } | ||
141 | } | ||
142 | }, | ||
143 | |||
113 | "endHottext" : { | 144 | "endHottext" : { |
114 | "module": "js/components/hottextunit.reel", | 145 | "module": "js/components/hottextunit.reel", |
115 | "name": "HotTextUnit", | 146 | "name": "HotTextUnit", |
@@ -151,16 +182,26 @@ | |||
151 | 182 | ||
152 | <div id="user_layers" class="userlayers"> | 183 | <div id="user_layers" class="userlayers"> |
153 | <div id="master_layer" class="masterlayer"> | 184 | <div id="master_layer" class="masterlayer"> |
154 | <div>Master Layer</div> | 185 | <div class="layer-master">Master Layer |
186 | <div class="tl-configbutton" data-montage-id="tl-configbutton"> | ||
187 | <div class="tl-dropdown"> | ||
188 | <div class="checkable" data-montage-id="checkable_relative">Use relative positioning</div> | ||
189 | <div class="checkable checked" data-montage-id="checkable_absolute">Use absolute positioning</div> | ||
190 | <div class="nj-divider divider-horizontal"></div> | ||
191 | <div class="checkable" data-montage-id="checkable_animated">Show only animated layers</div> | ||
192 | </div> | ||
193 | </div> | ||
194 | |||
195 | </div> | ||
196 | |||
155 | </div> | 197 | </div> |
156 | <div id="container-layers"> | 198 | <div id="container-layers" style="position: relative;" class="container-layers"> |
157 | <div id="container-layer"></div> | 199 | <div id="container-layer"></div> |
158 | </div> | 200 | </div> |
159 | </div> | 201 | </div> |
160 | 202 | ||
161 | <div id="timeline_gutter" class="timelinegutter"> | 203 | <div id="timeline_gutter" class="timelinegutter"> |
162 | <div id="newlayer_button" class="newlayerbutton"></div> | 204 | <div id="tl_slider" class="tl_slider"></div> |
163 | <div id="deletelayer_button" class="deletelayerbutton"></div> | ||
164 | <input id="end_hottext" class="endhottext"> | 205 | <input id="end_hottext" class="endhottext"> |
165 | </div> | 206 | </div> |
166 | </div> | 207 | </div> |
@@ -197,4 +238,4 @@ | |||
197 | </div> | 238 | </div> |
198 | 239 | ||
199 | </body> | 240 | </body> |
200 | </html> \ No newline at end of file | 241 | </html> |
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js index 033d0f79..9fe32736 100644 --- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js +++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | |||
@@ -19,19 +19,19 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { | |||
19 | 19 | ||
20 | /* === BEGIN: Models === */ | 20 | /* === BEGIN: Models === */ |
21 | _arrLayers:{ | 21 | _arrLayers:{ |
22 | serializable: true, | 22 | serializable:true, |
23 | value:[] | 23 | value:[] |
24 | }, | 24 | }, |
25 | 25 | ||
26 | arrLayers:{ | 26 | arrLayers:{ |
27 | serializable: true, | 27 | serializable:true, |
28 | get:function () { | 28 | get:function () { |
29 | return this._arrLayers; | 29 | return this._arrLayers; |
30 | }, | 30 | }, |
31 | set:function (newVal) { | 31 | set:function (newVal) { |
32 | this._arrLayers = newVal; | 32 | this._arrLayers = newVal; |
33 | this.needsDraw = true; | 33 | this.needsDraw = true; |
34 | this._cacheArrays(); | 34 | this.cacheTimeline(); |
35 | } | 35 | } |
36 | }, | 36 | }, |
37 | 37 | ||
@@ -50,12 +50,12 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { | |||
50 | 50 | ||
51 | 51 | ||
52 | _layerRepetition:{ | 52 | _layerRepetition:{ |
53 | serializable: true, | 53 | serializable:true, |
54 | value:null | 54 | value:null |
55 | }, | 55 | }, |
56 | 56 | ||
57 | layerRepetition:{ | 57 | layerRepetition:{ |
58 | serializable: true, | 58 | serializable:true, |
59 | get:function () { | 59 | get:function () { |
60 | return this._layerRepetition; | 60 | return this._layerRepetition; |
61 | }, | 61 | }, |
@@ -64,18 +64,9 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { | |||
64 | } | 64 | } |
65 | }, | 65 | }, |
66 | 66 | ||
67 | _cacheArrays : { | ||
68 | value: function() { | ||
69 | if (this._boolCacheArrays) { | ||
70 | this.application.ninja.currentDocument.tlArrLayers = this.arrLayers; | ||
71 | |||
72 | } | ||
73 | } | ||
74 | }, | ||