diff options
author | hwc487 | 2012-04-19 13:01:43 -0700 |
---|---|---|
committer | hwc487 | 2012-04-19 13:01:43 -0700 |
commit | e6a20fe64574763483dc602bd759278ccf5e5e68 (patch) | |
tree | 69defe7200206f0257fe90697136fadef59d521e /js/components | |
parent | ae7eb87564632ce7c676bd728b8ff2710ff0bb83 (diff) | |
parent | 9284c19f076dec3b47ece7dc7bcd22d74e4246c3 (diff) | |
download | ninja-e6a20fe64574763483dc602bd759278ccf5e5e68.tar.gz |
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into Textures
Conflicts:
js/lib/drawing/world.js
js/lib/geom/geom-obj.js
js/lib/rdge/materials/cloud-material.js
js/lib/rdge/materials/deform-material.js
js/lib/rdge/materials/flat-material.js
js/lib/rdge/materials/material.js
js/lib/rdge/materials/pulse-material.js
js/lib/rdge/materials/relief-tunnel-material.js
js/lib/rdge/materials/square-tunnel-material.js
js/lib/rdge/materials/star-material.js
js/lib/rdge/materials/taper-material.js
js/lib/rdge/materials/tunnel-material.js
js/lib/rdge/materials/twist-material.js
js/lib/rdge/materials/twist-vert-material.js
js/lib/rdge/materials/uber-material.js
js/lib/rdge/materials/water-material.js
js/lib/rdge/materials/z-invert-material.js
Diffstat (limited to 'js/components')
14 files changed, 108 insertions, 23 deletions
diff --git a/js/components/SliderBase.js b/js/components/SliderBase.js index 9f007456..8df868a2 100755 --- a/js/components/SliderBase.js +++ b/js/components/SliderBase.js | |||
@@ -268,7 +268,6 @@ var SliderBase = exports.SliderBase = Montage.create(Component, { | |||
268 | 268 | ||
269 | _dispatchActionEvent: { | 269 | _dispatchActionEvent: { |
270 | value: function() { | 270 | value: function() { |
271 | // console.log("dispatching event", this._element.id, this._eventType, this._wasSetByCode); | ||
272 | var actionEvent = document.createEvent("CustomEvent"); | 271 | var actionEvent = document.createEvent("CustomEvent"); |
273 | actionEvent.initEvent(this._eventType, true, true); | 272 | actionEvent.initEvent(this._eventType, true, true); |
274 | actionEvent.type = this._eventType; | 273 | actionEvent.type = this._eventType; |
diff --git a/js/components/layout/bread-crumb.reel/bread-crumb.css b/js/components/layout/bread-crumb.reel/bread-crumb.css index dcfd471c..26a56b45 100755 --- a/js/components/layout/bread-crumb.reel/bread-crumb.css +++ b/js/components/layout/bread-crumb.reel/bread-crumb.css | |||
@@ -4,14 +4,20 @@ | |||
4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | 4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. |
5 | </copyright> */ | 5 | </copyright> */ |
6 | 6 | ||
7 | .breadcrumbTrail{ | 7 | .breadcrumbTrail { |
8 | |||
8 | background-color: #282828; | 9 | background-color: #282828; |
9 | border-style: double; | ||
10 | height: 26px; | 10 | height: 26px; |
11 | position:relative; | 11 | position:relative; |
12 | -webkit-box-flex: 0; | 12 | -webkit-box-flex: 0; |
13 | } | 13 | } |
14 | 14 | ||
15 | .mainContentContainer > section.breadcrumbTrail { | ||
16 | border:0; | ||
17 | margin:0; | ||
18 | border-bottom:1px solid #000; | ||
19 | margin-bottom:1px; | ||
20 | } | ||
15 | .breadcrumbTrail button.nj-skinned { | 21 | .breadcrumbTrail button.nj-skinned { |
16 | float: left; | 22 | float: left; |
17 | width: 60px; | 23 | width: 60px; |
diff --git a/js/components/layout/document-entry.reel/document-entry.css b/js/components/layout/document-entry.reel/document-entry.css index 52d08d72..4601974f 100755 --- a/js/components/layout/document-entry.reel/document-entry.css +++ b/js/components/layout/document-entry.reel/document-entry.css | |||
@@ -4,19 +4,26 @@ | |||
4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | 4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. |
5 | </copyright> */ | 5 | </copyright> */ |
6 | 6 | ||
7 | .documentEntry{ | ||
8 | white-space: nowrap; | ||
9 | } | ||
10 | |||
7 | .documentEntry span | 11 | .documentEntry span |
8 | { | 12 | { |
9 | /*display: inline-block;*/ | 13 | display: inline-block; |
10 | white-space: nowrap; | 14 | white-space: pre; |
11 | overflow: hidden; | 15 | overflow: hidden; |
12 | text-overflow: ellipsis; /* Causes ... to appear ?? */ | 16 | text-overflow: ellipsis; |
13 | max-width:100px; | 17 | max-width:100px; |
18 | width:85%; | ||
19 | min-width:0px; | ||
14 | } | 20 | } |
15 | 21 | ||
16 | .documentEntry img { | 22 | .documentEntry img { |
17 | opacity: 0.5; /* 50% */ | 23 | opacity: 0.5; /* 50% */ |
18 | padding-left: 5px; | ||
19 | width: 12px; | 24 | width: 12px; |
25 | max-width:12px; | ||
26 | min-width:5px; | ||
20 | height: 12px; | 27 | height: 12px; |
21 | -webkit-transition: opacity 0.2s ease; | 28 | -webkit-transition: opacity 0.2s ease; |
22 | transition: opacity 0.2s ease; | 29 | transition: opacity 0.2s ease; |
diff --git a/js/components/layout/documents-tab.reel/documents-tab.css b/js/components/layout/documents-tab.reel/documents-tab.css index 689eb777..da00f727 100755 --- a/js/components/layout/documents-tab.reel/documents-tab.css +++ b/js/components/layout/documents-tab.reel/documents-tab.css | |||
@@ -12,7 +12,6 @@ | |||
12 | } | 12 | } |
13 | 13 | ||
14 | .openDocuments { | 14 | .openDocuments { |
15 | float: left; | ||
16 | height: 25px; | 15 | height: 25px; |
17 | width: 100%; | 16 | width: 100%; |
18 | font-size: 12px; | 17 | font-size: 12px; |
@@ -21,16 +20,20 @@ | |||
21 | padding: 0; | 20 | padding: 0; |
22 | position: relative; | 21 | position: relative; |
23 | text-decoration: none; | 22 | text-decoration: none; |
23 | display: -webkit-box; | ||
24 | -webkit-box-orient: horizontal; | ||
25 | -webkit-box-pack:start; | ||
26 | -webkit-box-align:start; | ||
24 | } | 27 | } |
25 | 28 | ||
26 | .openDocuments li { | 29 | .openDocuments li { |
27 | border-right: 1px solid black; | 30 | border-right: 1px solid black; |
28 | cursor: pointer; | 31 | cursor: pointer; |
29 | display: inline; | ||
30 | float: left; | ||
31 | padding: 0.5em 1em; | 32 | padding: 0.5em 1em; |
32 | text-shadow: 1px 1px 1px #000000; | ||
33 | vertical-align: middle; | 33 | vertical-align: middle; |
34 | text-shadow: 1px 1px 1px #000000; | ||
35 | -webkit-box-flex: 1; | ||
36 | max-width: 115px; | ||
34 | } | 37 | } |
35 | 38 | ||
36 | .openDocuments li:hover, | 39 | .openDocuments li:hover, |
diff --git a/js/components/layout/tools-list.reel/tools-list.js b/js/components/layout/tools-list.reel/tools-list.js index 5ea6f70f..d68e8a56 100755 --- a/js/components/layout/tools-list.reel/tools-list.js +++ b/js/components/layout/tools-list.reel/tools-list.js | |||
@@ -56,6 +56,7 @@ exports.ToolsList = Montage.create(Component, { | |||
56 | this.SubselectionTool.options = this.application.ninja.toolsProperties.subSelectionProperties; | 56 | this.SubselectionTool.options = this.application.ninja.toolsProperties.subSelectionProperties; |
57 | 57 | ||
58 | this.Rotate3DTool.options = this.application.ninja.toolsProperties.rotate3DProperties; | 58 | this.Rotate3DTool.options = this.application.ninja.toolsProperties.rotate3DProperties; |
59 | this.Translate3DTool.options = this.application.ninja.toolsProperties.rotate3DProperties; | ||
59 | this.TagTool.options = this.application.ninja.toolsProperties.tagProperties; | 60 | this.TagTool.options = this.application.ninja.toolsProperties.tagProperties; |
60 | this.PenTool.options = this.application.ninja.toolsProperties.penProperties; | 61 | this.PenTool.options = this.application.ninja.toolsProperties.penProperties; |
61 | this.TextTool.options = this.application.ninja.toolsProperties.textProperties; | 62 | this.TextTool.options = this.application.ninja.toolsProperties.textProperties; |
diff --git a/js/components/menu/menu-item.reel/menu-item.js b/js/components/menu/menu-item.reel/menu-item.js index 64a89a6a..26fc7573 100755 --- a/js/components/menu/menu-item.reel/menu-item.js +++ b/js/components/menu/menu-item.reel/menu-item.js | |||
@@ -61,6 +61,8 @@ exports.MenuItem = Montage.create(Component, { | |||
61 | 61 | ||
62 | prepareForDraw: { | 62 | prepareForDraw: { |
63 | value: function() { | 63 | value: function() { |
64 | var boundObject = this.application.ninja, strArr = null, i=0; | ||
65 | |||
64 | if(!this.data) return; | 66 | if(!this.data) return; |
65 | 67 | ||
66 | if(this.data.separator) { | 68 | if(this.data.separator) { |
@@ -82,9 +84,14 @@ exports.MenuItem = Montage.create(Component, { | |||
82 | } | 84 | } |
83 | 85 | ||
84 | if(this.data.enabled.boundProperty) { | 86 | if(this.data.enabled.boundProperty) { |
87 | |||
88 | boundObject = this.application.ninja[this.data.enabled.boundObj]; | ||
89 | |||
85 | Object.defineBinding(this, "enabled", { | 90 | Object.defineBinding(this, "enabled", { |
86 | boundObject: this.application.ninja[this.data.enabled.boundObj], | 91 | boundObject: boundObject, |
87 | boundObjectPropertyPath: this.data.enabled.boundProperty | 92 | boundObjectPropertyPath: this.data.enabled.boundProperty, |
93 | boundValueMutator: this.data.enabled.boundValueMutator, | ||
94 | oneway : this.data.enabled.oneway | ||
88 | }); | 95 | }); |
89 | 96 | ||
90 | } else { | 97 | } else { |
@@ -134,7 +141,7 @@ exports.MenuItem = Montage.create(Component, { | |||
134 | 141 | ||
135 | if(this.data.radio && this.checked) return; | 142 | if(this.data.radio && this.checked) return; |
136 | 143 | ||
137 | if(this.enabled || !this.submenu) { | 144 | if((this.enabled === true) && (this.submenu === false) ) { |
138 | if(this.data.action) { | 145 | if(this.data.action) { |
139 | NJevent ( this.data.action ); | 146 | NJevent ( this.data.action ); |
140 | } else if(this.checked !== null) { | 147 | } else if(this.checked !== null) { |
diff --git a/js/components/tools-properties/brush-properties.reel/brush-properties.html b/js/components/tools-properties/brush-properties.reel/brush-properties.html index 608111bd..98442164 100755 --- a/js/components/tools-properties/brush-properties.reel/brush-properties.html +++ b/js/components/tools-properties/brush-properties.reel/brush-properties.html | |||
@@ -33,7 +33,8 @@ | |||
33 | "maxValue": 100, | 33 | "maxValue": 100, |
34 | "value": 100, |