Fixed 4 demo json scripts 92/44692/2
authorTom Robinson <tom.robinson@samsung.com>
Fri, 24 Jul 2015 16:03:25 +0000 (17:03 +0100)
committerTom Robinson <tom.robinson@samsung.com>
Mon, 27 Jul 2015 09:08:19 +0000 (10:08 +0100)
Change-Id: I7402521736ed2b2c0a8ccf8aa8139018444dac7d

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
resources/scripts/animated-colors.json
resources/scripts/button.json
resources/scripts/timing.json

index 39b7434..7ee3f59 100644 (file)
Binary files a/resources/images/spot_button_off.png and b/resources/images/spot_button_off.png differ
index f840f9e..69c3ed1 100644 (file)
Binary files a/resources/images/spot_button_on.png and b/resources/images/spot_button_on.png differ
index 8db76ca..52bcd82 100644 (file)
Binary files a/resources/images/spot_jelly_off.png and b/resources/images/spot_jelly_off.png differ
index 0454abe..d5f00e2 100644 (file)
Binary files a/resources/images/spot_jelly_on.png and b/resources/images/spot_jelly_on.png differ
index 19af1d3..e0a1b4a 100644 (file)
@@ -79,9 +79,9 @@
       "sizeAspectRatio": false,
       "visible": true,
       "color": [
-        1,
-        1,
-        1,
+        0,
+        0,
+        0,
         1
       ],
       "image": {
       "sizeAspectRatio": false,
       "visible": true,
       "color": [
-        1,
-        1,
-        1,
+        0,
+        0,
+        0,
         1
       ],
       "image": {
       ],
       "sizeAspectRatio": false,
       "color": [
-        1,
-        1,
-        1,
+        0,
+        0,
+        0,
         1
       ],
       "image": {
     },
     {
       "type": "Control",
-      "name": "Left Black",
+      "name": "Left Crop",
       "relayout-enabled": false,
       "position": [
         144.5,
       ],
       "sizeAspectRatio": false,
       "background-color": [
-        0,
-        0,
-        0,
+        1,
+        1,
+        1,
         1
       ],
       "color": [
     },
     {
       "type": "Control",
-      "name": "Right Black",
+      "name": "Right Crop",
       "relayout-enabled": false,
       "position": [
         629.5,
       ],
       "sizeAspectRatio": false,
       "background-color": [
-        0,
-        0,
-        0,
+        1,
+        1,
+        1,
         1
       ],
       "color": [
           "timelineColor": "#b0e8f9"
         },
         {
-          "actor": "Left Black",
+          "actor": "Left Crop",
           "property": "position",
           "value": [
             144.5,
           "timelineColor": "#a2cfea"
         },
         {
-          "actor": "Right Black",
+          "actor": "Right Crop",
           "property": "position",
           "value": [
             629.5,
           "timelineColor": "#b0e8f9"
         },
         {
-          "actor": "Left Black",
+          "actor": "Left Crop",
           "property": "position",
           "value": [
             -95,
           "timelineColor": "#a2cfea"
         },
         {
-          "actor": "Right Black",
+          "actor": "Right Crop",
           "property": "position",
           "value": [
             383,
index bcb6133..bb0a140 100644 (file)
@@ -18,7 +18,6 @@
   "stage": [
     {
       "type": "Control",
-      "draw-mode": "OVERLAY_2D",
       "actors": [
         {
           "type": "Control",
index 9b3d46e..481d11d 100644 (file)
       "anchor-point": "TOP_CENTER",
       "position": [0, 0, 0],
       "size": [400, 200, 0],
-      "unselected-state-actor": "{DALI_IMAGE_DIR}blocks-brick-1.png",
-      "selected-state-actor": "{DALI_IMAGE_DIR}blocks-brick-2.png",
-      "label-actor": {
-        "type": "TextLabel",
-        "text": "Normal"
-      }
+      "unselected-state-image": "{DALI_IMAGE_DIR}blocks-brick-1.png",
+      "selected-state-image": "{DALI_IMAGE_DIR}blocks-brick-2.png",
+      "label-text": "Normal"
     },
 
     // Second Button
       "anchor-point": "CENTER",
       "position": [0, 0, 0],
       "size": [400, 200, 0],
-      "label-actor": {
-        "type": "TextLabel",
-        "text": "Disabled"
-      },
       "disabled": true,
-      "unselected-state-actor": "{DALI_IMAGE_DIR}blocks-brick-1.png",
-      "selected-state-actor": "{DALI_IMAGE_DIR}blocks-brick-2.png",
-      "disabled-state-actor": "{DALI_IMAGE_DIR}blocks-brick-3.png"
+      "unselected-state-image": "{DALI_IMAGE_DIR}blocks-brick-1.png",
+      "selected-state-image": "{DALI_IMAGE_DIR}blocks-brick-2.png",
+      "disabled-state-image": "{DALI_IMAGE_DIR}blocks-brick-3.png",
+      "label-text": "Disabled"
     },
 
     // Third Button
       "anchor-point": "BOTTOM_CENTER",
       "position": [0, 0, 0],
       "size": [400, 200, 0],
-      "label-actor": {
-        "type": "TextLabel",
-        "text": "Toggle"
-      },
       "togglable": true,
-      "unselected-state-actor": "{DALI_IMAGE_DIR}blocks-brick-1.png",
-      "selected-state-actor": "{DALI_IMAGE_DIR}blocks-paddle.png",
+      "unselected-state-image": "{DALI_IMAGE_DIR}blocks-brick-1.png",
+      "selected-state-image": "{DALI_IMAGE_DIR}blocks-brick-3.png",
+      "label-text": "Toggle",
       "signals": [{
         "name": "selected",
         "action": "set",
index e3864f1..00cb973 100644 (file)
   },
   "stage": [
     {
+    "type": "Actor",
+    "parent-origin": "CENTER",
+    "anchor-point": "CENTER",
+    "actors": [{
       "type": "color-control",
       "name": "Container 1",
       "position": [
@@ -84,6 +88,7 @@
         55,
         0
       ]
+    }]
     },
     {
       "type": "Control",