- JavaScript to support:
- Rapid Application Development
- Hybrid C++/JavaScript applications
- - Leaverage third party JavaScript modules (backbone.js etc)
+ - Leverage third party JavaScript modules (backbone.js etc)
JSON support is built in to DALi.
- **Templates** actor & control tree creation
- **Styles** used to style actor & control trees
- **Animations**
-- **Instances** of objects for path, shaderEffects, renderTasks, frameBuffers
+- **Instances** of objects for path, renderTasks, frameBuffers
- **Stage**. A list of actors / controls that can be added to the stage
- **Constants** (e.g. positions / colors, that can be references by other parts of the JSON file);
- **Actions**
[
{
"name":"usersBackground",
- "type":"ImageActor",
+ "type":"ImageView",
"parentOrigin":"CENTER",
"anchorPoint":"CENTER",
"size":"{DEFAULT_MENU_USER_SIZE}",
"colorMode":"USE_OWN_COLOR",
- "image":{ "filename":"{IMAGE_PATH}white-pixel.png" },
+ "image":{ "url":"{IMAGE_PATH}white-pixel.png" },
"color":"{DEFAULT_MENU_BACKGROUND_COLOR}"
},
{
"name":"icon",
- "type":"ImageActor",
+ "type":"ImageView",
"parentOrigin":"TOP_CENTER",
"anchorPoint":"TOP_CENTER",
"position":[0,41,1],
- "image":{ "filename":"{IMAGE_PATH}ico_man_nor.png" }
+ "image":{ "url":"{IMAGE_PATH}ico_man_nor.png" }
},
]
},
},
"actors": [{
"name":"gallery-1",
- "type":"ImageActor",
+ "type":"ImageView",
"image": {
- "filename": "{DALI_IMAGE_DIR}gallery-large-1.jpg"
+ "url": "{DALI_IMAGE_DIR}gallery-large-1.jpg"
},
"customProperties": { // properties registered dynamically
"cellIndices": [0,0],// property to specify the top-left cell this child occupies
@class _Guide_JSON_and_JavaScript_overview
-*/
\ No newline at end of file
+*/