diff options
author | Pierre Frisch | 2011-12-22 07:25:50 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-01-27 11:18:17 -0800 |
commit | b89a7ee8b956c96a1dcee995ea840feddc5d4b27 (patch) | |
tree | 0f3136ab0ecdbbbed6a83576581af0a53124d6f1 /js/components/tools-properties/ink-bottle-properties.reel/ink-bottle-properties.js | |
parent | 2401f05d1f4b94d45e4568b81fc73e67b969d980 (diff) | |
download | ninja-b89a7ee8b956c96a1dcee995ea840feddc5d4b27.tar.gz |
First commit of Ninja to ninja-internal
Signed-off-by: Valerio Virgillito <rmwh84@motorola.com>
Diffstat (limited to 'js/components/tools-properties/ink-bottle-properties.reel/ink-bottle-properties.js')
-rw-r--r-- | js/components/tools-properties/ink-bottle-properties.reel/ink-bottle-properties.js | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/js/components/tools-properties/ink-bottle-properties.reel/ink-bottle-properties.js b/js/components/tools-properties/ink-bottle-properties.reel/ink-bottle-properties.js new file mode 100644 index 00000000..61ea808a --- /dev/null +++ b/js/components/tools-properties/ink-bottle-properties.reel/ink-bottle-properties.js | |||
@@ -0,0 +1,38 @@ | |||
1 | /* <copyright> | ||
2 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
3 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
5 | </copyright> */ | ||
6 | |||
7 | var Montage = require("montage/core/core").Montage, | ||
8 | ShapesController = require("js/controllers/elements/shapes-controller").ShapesController, | ||
9 | ToolProperties = require("js/components/tools-properties/tool-properties").ToolProperties; | ||
10 | |||
11 | exports.InkBottleProperties = Montage.create(ToolProperties, { | ||
12 | |||
13 | _use3D: { value: false }, | ||
14 | |||
15 | _subPrepare: { | ||
16 | value: function() { | ||
17 | ShapesController.DisplayMaterials(this._strokeMaterial); | ||
18 | |||
19 | this.handleChange(null); | ||
20 | this._useWebGL.addEventListener("change", this, false); | ||
21 | } | ||
22 | }, | ||
23 | |||
24 | handleChange: { | ||
25 | value: function(event) { | ||
26 | if(this._useWebGL.checked) | ||
27 | { | ||
28 | this._use3D = true; | ||
29 | this._materialsContainer.style["display"] = ""; | ||
30 | } | ||
31 | else | ||
32 | { | ||
33 | this._use3D = false; | ||
34 | this._materialsContainer.style["display"] = "none"; | ||
35 | } | ||
36 | } | ||
37 | } | ||
38 | }); \ No newline at end of file | ||