{
// library of styles
"styles": {
- "red-theme": {
+ "redTheme": {
"color": [1, 0, 0, 1]
},
- "basic-text": {
- "parent-origin": "CENTER"
+ "basicText": {
+ "parentOrigin": "CENTER"
}
},
"paths":
"actor": "greeting", // referenced actors must exist on stage
"property": "position",
"value": [300, 300, -1000],
- "alpha-function": "EASE_IN_OUT",
- "time-period": {
+ "alphaFunction": "EASE_IN_OUT",
+ "timePeriod": {
"delay": 0,
"duration": 3
}
"actor": "greeting", // referenced actors must exist on stage
"property": "scale",
"value": [5, 5, 1],
- "time-period": {
+ "timePeriod": {
"delay": 2,
"duration": 3
}
"actor": "image", // referenced actors must exist on stage
"property": "orientation",
"value": [0, 0, -45],
- "alpha-function": "EASE_IN_OUT",
- "time-period": {
+ "alphaFunction": "EASE_IN_OUT",
+ "timePeriod": {
"delay": 0,
"duration": 3
}
}]
},
- "path-animation": {
+ "pathAnimation": {
"duration": 3.0,
"properties": [{
"actor": "greeting2", // referenced actors must exist on stage
"path":"path0",
"forward":[1,0,0],
- "alpha-function": "EASE_IN_OUT",
- "time-period": {
+ "alphaFunction": "EASE_IN_OUT",
+ "timePeriod": {
"delay": 0,
"duration": 3
}
// a tree of actors
"stage": [{
"name": "greeting",
- "type": "TextView",
+ "type": "TextLabel",
"text": "Touch me",
- "styles": ["basic-text"],
+ "styles": ["basicText"],
"position": [0, -120, 0],
"size": [200, 200, 1],
"orientation": [0, 0, 30],
"signals": [{
- "name": "touched",
+ "name": "touch",
"action": "play",
"animation": "animate"
}]
}, {
"name":"greeting2",
- "type": "TextView",
- "parent-origin": "CENTER",
- "anchor-point": "CENTER",
+ "type": "TextLabel",
+ "parentOrigin": "CENTER",
+ "anchorPoint": "CENTER",
"size": [200, 200, 1],
"orientation": [0, 0, 39],
"position": [-150, -50, 0],
"text": "or me",
"signals": [{
- "name": "touched",
+ "name": "touch",
"action": "play",
- "animation": "path-animation"
+ "animation": "pathAnimation"
}]
}, {
- "type": "TextView", // styles can be additive
- "parent-origin": "CENTER",
- "anchor-point": "CENTER",
+ "type": "TextLabel", // styles can be additive
+ "parentOrigin": "CENTER",
+ "anchorPoint": "CENTER",
"size": [200, 200, 1],
"text": "or the image.."
}, {
"name": "image",
- "type": "ImageActor",
- "image": {
- "filename": "{DALI_IMAGE_DIR}gallery-large-21.jpg"
- },
- "relayout-enabled": false,
+ "type": "ImageView",
+ "image": "{DEMO_IMAGE_DIR}gallery-large-21.jpg",
+ "relayoutEnabled": false,
"position": [0, 200, 0],
"size": [200, 200, 1],
"signals": [{
- "name": "touched",
+ "name": "touch",
"action": "play",
"animation": "rotate"
}],
- "position-inheritance": "DONT_INHERIT_POSITION"
+ "positionInheritance": "DONT_INHERIT_POSITION"
}]
}