Commit 223ebcd559a08e1294725d07f38b47c88ad52f60
Committed by
Gerrit Code Review
Merge "Fixed 4 demo json scripts" into devel/master
Showing
8 changed files
with
36 additions
and
41 deletions
resources/images/spot_button_off.png
resources/images/spot_button_on.png
resources/images/spot_jelly_off.png
resources/images/spot_jelly_on.png
resources/scripts/animated-buttons.json
| @@ -79,9 +79,9 @@ | @@ -79,9 +79,9 @@ | ||
| 79 | "sizeAspectRatio": false, | 79 | "sizeAspectRatio": false, |
| 80 | "visible": true, | 80 | "visible": true, |
| 81 | "color": [ | 81 | "color": [ |
| 82 | - 1, | ||
| 83 | - 1, | ||
| 84 | - 1, | 82 | + 0, |
| 83 | + 0, | ||
| 84 | + 0, | ||
| 85 | 1 | 85 | 1 |
| 86 | ], | 86 | ], |
| 87 | "image": { | 87 | "image": { |
| @@ -111,9 +111,9 @@ | @@ -111,9 +111,9 @@ | ||
| 111 | "sizeAspectRatio": false, | 111 | "sizeAspectRatio": false, |
| 112 | "visible": true, | 112 | "visible": true, |
| 113 | "color": [ | 113 | "color": [ |
| 114 | - 1, | ||
| 115 | - 1, | ||
| 116 | - 1, | 114 | + 0, |
| 115 | + 0, | ||
| 116 | + 0, | ||
| 117 | 1 | 117 | 1 |
| 118 | ], | 118 | ], |
| 119 | "image": { | 119 | "image": { |
| @@ -147,9 +147,9 @@ | @@ -147,9 +147,9 @@ | ||
| 147 | ], | 147 | ], |
| 148 | "sizeAspectRatio": false, | 148 | "sizeAspectRatio": false, |
| 149 | "color": [ | 149 | "color": [ |
| 150 | - 1, | ||
| 151 | - 1, | ||
| 152 | - 1, | 150 | + 0, |
| 151 | + 0, | ||
| 152 | + 0, | ||
| 153 | 1 | 153 | 1 |
| 154 | ], | 154 | ], |
| 155 | "image": { | 155 | "image": { |
| @@ -195,7 +195,7 @@ | @@ -195,7 +195,7 @@ | ||
| 195 | }, | 195 | }, |
| 196 | { | 196 | { |
| 197 | "type": "Control", | 197 | "type": "Control", |
| 198 | - "name": "Left Black", | 198 | + "name": "Left Crop", |
| 199 | "relayout-enabled": false, | 199 | "relayout-enabled": false, |
| 200 | "position": [ | 200 | "position": [ |
| 201 | 144.5, | 201 | 144.5, |
| @@ -209,9 +209,9 @@ | @@ -209,9 +209,9 @@ | ||
| 209 | ], | 209 | ], |
| 210 | "sizeAspectRatio": false, | 210 | "sizeAspectRatio": false, |
| 211 | "background-color": [ | 211 | "background-color": [ |
| 212 | - 0, | ||
| 213 | - 0, | ||
| 214 | - 0, | 212 | + 1, |
| 213 | + 1, | ||
| 214 | + 1, | ||
| 215 | 1 | 215 | 1 |
| 216 | ], | 216 | ], |
| 217 | "color": [ | 217 | "color": [ |
| @@ -224,7 +224,7 @@ | @@ -224,7 +224,7 @@ | ||
| 224 | }, | 224 | }, |
| 225 | { | 225 | { |
| 226 | "type": "Control", | 226 | "type": "Control", |
| 227 | - "name": "Right Black", | 227 | + "name": "Right Crop", |
| 228 | "relayout-enabled": false, | 228 | "relayout-enabled": false, |
| 229 | "position": [ | 229 | "position": [ |
| 230 | 629.5, | 230 | 629.5, |
| @@ -238,9 +238,9 @@ | @@ -238,9 +238,9 @@ | ||
| 238 | ], | 238 | ], |
| 239 | "sizeAspectRatio": false, | 239 | "sizeAspectRatio": false, |
| 240 | "background-color": [ | 240 | "background-color": [ |
| 241 | - 0, | ||
| 242 | - 0, | ||
| 243 | - 0, | 241 | + 1, |
| 242 | + 1, | ||
| 243 | + 1, | ||
| 244 | 1 | 244 | 1 |
| 245 | ], | 245 | ], |
| 246 | "color": [ | 246 | "color": [ |
| @@ -427,7 +427,7 @@ | @@ -427,7 +427,7 @@ | ||
| 427 | "timelineColor": "#b0e8f9" | 427 | "timelineColor": "#b0e8f9" |
| 428 | }, | 428 | }, |
| 429 | { | 429 | { |
| 430 | - "actor": "Left Black", | 430 | + "actor": "Left Crop", |
| 431 | "property": "position", | 431 | "property": "position", |
| 432 | "value": [ | 432 | "value": [ |
| 433 | 144.5, | 433 | 144.5, |
| @@ -457,7 +457,7 @@ | @@ -457,7 +457,7 @@ | ||
| 457 | "timelineColor": "#a2cfea" | 457 | "timelineColor": "#a2cfea" |
| 458 | }, | 458 | }, |
| 459 | { | 459 | { |
| 460 | - "actor": "Right Black", | 460 | + "actor": "Right Crop", |
| 461 | "property": "position", | 461 | "property": "position", |
| 462 | "value": [ | 462 | "value": [ |
| 463 | 629.5, | 463 | 629.5, |
| @@ -627,7 +627,7 @@ | @@ -627,7 +627,7 @@ | ||
| 627 | "timelineColor": "#b0e8f9" | 627 | "timelineColor": "#b0e8f9" |
| 628 | }, | 628 | }, |
| 629 | { | 629 | { |
| 630 | - "actor": "Left Black", | 630 | + "actor": "Left Crop", |
| 631 | "property": "position", | 631 | "property": "position", |
| 632 | "value": [ | 632 | "value": [ |
| 633 | -95, | 633 | -95, |
| @@ -657,7 +657,7 @@ | @@ -657,7 +657,7 @@ | ||
| 657 | "timelineColor": "#a2cfea" | 657 | "timelineColor": "#a2cfea" |
| 658 | }, | 658 | }, |
| 659 | { | 659 | { |
| 660 | - "actor": "Right Black", | 660 | + "actor": "Right Crop", |
| 661 | "property": "position", | 661 | "property": "position", |
| 662 | "value": [ | 662 | "value": [ |
| 663 | 383, | 663 | 383, |
resources/scripts/animated-colors.json
resources/scripts/button.json
| @@ -26,12 +26,9 @@ | @@ -26,12 +26,9 @@ | ||
| 26 | "anchor-point": "TOP_CENTER", | 26 | "anchor-point": "TOP_CENTER", |
| 27 | "position": [0, 0, 0], | 27 | "position": [0, 0, 0], |
| 28 | "size": [400, 200, 0], | 28 | "size": [400, 200, 0], |
| 29 | - "unselected-state-actor": "{DALI_IMAGE_DIR}blocks-brick-1.png", | ||
| 30 | - "selected-state-actor": "{DALI_IMAGE_DIR}blocks-brick-2.png", | ||
| 31 | - "label-actor": { | ||
| 32 | - "type": "TextLabel", | ||
| 33 | - "text": "Normal" | ||
| 34 | - } | 29 | + "unselected-state-image": "{DALI_IMAGE_DIR}blocks-brick-1.png", |
| 30 | + "selected-state-image": "{DALI_IMAGE_DIR}blocks-brick-2.png", | ||
| 31 | + "label-text": "Normal" | ||
| 35 | }, | 32 | }, |
| 36 | 33 | ||
| 37 | // Second Button | 34 | // Second Button |
| @@ -41,14 +38,11 @@ | @@ -41,14 +38,11 @@ | ||
| 41 | "anchor-point": "CENTER", | 38 | "anchor-point": "CENTER", |
| 42 | "position": [0, 0, 0], | 39 | "position": [0, 0, 0], |
| 43 | "size": [400, 200, 0], | 40 | "size": [400, 200, 0], |
| 44 | - "label-actor": { | ||
| 45 | - "type": "TextLabel", | ||
| 46 | - "text": "Disabled" | ||
| 47 | - }, | ||
| 48 | "disabled": true, | 41 | "disabled": true, |
| 49 | - "unselected-state-actor": "{DALI_IMAGE_DIR}blocks-brick-1.png", | ||
| 50 | - "selected-state-actor": "{DALI_IMAGE_DIR}blocks-brick-2.png", | ||
| 51 | - "disabled-state-actor": "{DALI_IMAGE_DIR}blocks-brick-3.png" | 42 | + "unselected-state-image": "{DALI_IMAGE_DIR}blocks-brick-1.png", |
| 43 | + "selected-state-image": "{DALI_IMAGE_DIR}blocks-brick-2.png", | ||
| 44 | + "disabled-state-image": "{DALI_IMAGE_DIR}blocks-brick-3.png", | ||
| 45 | + "label-text": "Disabled" | ||
| 52 | }, | 46 | }, |
| 53 | 47 | ||
| 54 | // Third Button | 48 | // Third Button |
| @@ -59,13 +53,10 @@ | @@ -59,13 +53,10 @@ | ||
| 59 | "anchor-point": "BOTTOM_CENTER", | 53 | "anchor-point": "BOTTOM_CENTER", |
| 60 | "position": [0, 0, 0], | 54 | "position": [0, 0, 0], |
| 61 | "size": [400, 200, 0], | 55 | "size": [400, 200, 0], |
| 62 | - "label-actor": { | ||
| 63 | - "type": "TextLabel", | ||
| 64 | - "text": "Toggle" | ||
| 65 | - }, | ||
| 66 | "togglable": true, | 56 | "togglable": true, |
| 67 | - "unselected-state-actor": "{DALI_IMAGE_DIR}blocks-brick-1.png", | ||
| 68 | - "selected-state-actor": "{DALI_IMAGE_DIR}blocks-paddle.png", | 57 | + "unselected-state-image": "{DALI_IMAGE_DIR}blocks-brick-1.png", |
| 58 | + "selected-state-image": "{DALI_IMAGE_DIR}blocks-brick-3.png", | ||
| 59 | + "label-text": "Toggle", | ||
| 69 | "signals": [{ | 60 | "signals": [{ |
| 70 | "name": "selected", | 61 | "name": "selected", |
| 71 | "action": "set", | 62 | "action": "set", |
resources/scripts/timing.json
| @@ -14,6 +14,10 @@ | @@ -14,6 +14,10 @@ | ||
| 14 | }, | 14 | }, |
| 15 | "stage": [ | 15 | "stage": [ |
| 16 | { | 16 | { |
| 17 | + "type": "Actor", | ||
| 18 | + "parent-origin": "CENTER", | ||
| 19 | + "anchor-point": "CENTER", | ||
| 20 | + "actors": [{ | ||
| 17 | "type": "color-control", | 21 | "type": "color-control", |
| 18 | "name": "Container 1", | 22 | "name": "Container 1", |
| 19 | "position": [ | 23 | "position": [ |
| @@ -84,6 +88,7 @@ | @@ -84,6 +88,7 @@ | ||
| 84 | 55, | 88 | 55, |
| 85 | 0 | 89 | 0 |
| 86 | ] | 90 | ] |
| 91 | + }] | ||
| 87 | }, | 92 | }, |
| 88 | { | 93 | { |
| 89 | "type": "Control", | 94 | "type": "Control", |