'stage': \
[ \
{ \
- 'type':'TextView', \
+ 'type':'TextLabel', \
'size': [50,50,1], \
'parent-origin': 'CENTER', \
'text':'COULD NOT LOAD JSON FILE' \
]
},
{
- "type": "TextView",
+ "type": "TextLabel",
"name": "text",
"parent-origin": "CENTER",
"anchor-point": "CENTER",
- "text": "<font size='20'><b>START</b></font>",
- "markup-enabled": true,
+ "text": "START",
+ "point-size": 20,
"signals": [
{
"name": "tapped",
// a tree of actors
"stage": [{
"name": "greeting",
- "type": "TextView",
+ "type": "TextLabel",
"text": "Touch me",
"styles": ["basic-text"],
"position": [0, -120, 0],
}]
}, {
"name":"greeting2",
- "type": "TextView",
+ "type": "TextLabel",
"parent-origin": "CENTER",
"anchor-point": "CENTER",
"size": [200, 200, 1],
"animation": "path-animation"
}]
}, {
- "type": "TextView", // styles can be additive
+ "type": "TextLabel", // styles can be additive
"parent-origin": "CENTER",
"anchor-point": "CENTER",
"size": [200, 200, 1],
*/
{
"stage": [
- // A TextView with a red background
+ // A TextLabel with a red background
{
- "type": "TextView",
+ "type": "TextLabel",
"text": "Hello World",
"parent-origin": "TOP_CENTER",
"anchor-point": "TOP_CENTER",
}
},
"label-actor": {
- "type": "TextView",
+ "type": "TextLabel",
"text": "Normal"
}
},
"position": [0, 0, 0],
"size": [0, 200, 0],
"label-actor": {
- "type": "TextView",
+ "type": "TextLabel",
"text": "Disabled"
},
"disabled": true,
"position": [0, 0, 0],
"size": [0, 200, 0],
"label-actor": {
- "type": "TextView",
+ "type": "TextLabel",
"text": "Toggle"
},
"togglable": true,
"actor": "toggle-button",
"property": "label-actor",
"value": {
- "type": "TextView",
+ "type": "TextLabel",
"text": "Using a 9-patch image"
}
}]
+++ /dev/null
-/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-{
- // a tree of actors
- "stage": [{
- "type": "Actor",
- "size": [400, 400, 1],
- "parent-origin": "CENTER",
- "actors": [{
- "type": "TextView",
- "size": [400, 400, 1],
- "text": "<font size='8>Text with<br>\n<b>'markup-enabled':true</b></font>",
- "markup-enabled": true,
- "multiline-policy": "SplitByNewLineChar",
- "horizontal-alignment": "HorizontalCenter",
- "vertical-alignment": "VerticalBottom",
- "width-exceed-policy": "Fade",
- "line-justification": "Center",
- "fade-boundary": [50, 50, 0, 0],
- "line-height-offset": 25.0,
- "parent-origin": "TOP_CENTER"
- }, {
- "type": "TextView",
- "size": [400, 400, 1],
- "text": "<font size='16'>Text with\n<b>'markup-enabled':false</b></font>",
- "markup-enabled": false,
- "multiline-policy": "SplitByWord",
- "horizontal-alignment": "HorizontalLeft",
- "vertical-alignment": "VerticalTop",
- "width-exceed-policy": "ShrinkToFit",
- "height-exceed-policy": "Original",
- "line-justification": "Right",
- "line-height-offset": 5.0,
- "parent-origin": "BOTTOM_CENTER"
- }]
- }]
-}
{
// a tree of actors
"stage": [{
- "type": "TextView",
+ "type": "TextLabel",
"text": "Hello World",
"parent-origin": "CENTER"
}]
"type": "Control",
"actors": [
{
- "type": "TextView",
+ "type": "TextLabel",
"actors": [],
"name": "Time",
"position": [
1
],
"sizeAspectRatio": false,
- "markup-enabled": true,
- "text": "<font size=10px color=#ffffff><b>12:30</b></font>"
+ "text": "12:30",
+ "point-size": 10
}
],
"name": "Indicators",
"title": "title",
"sub-title": "sub title",
"actors": [{
- "type": "TextView", // styles can be additive
+ "type": "TextLabel", // styles can be additive
"parent-origin": [0.5, 0.5, 0],
"anchor-point": [0.5, 0.5, 0],
"size": [200, 200, 1],
"type": "Page",
"name": "page2",
"actors": [{
- "type": "TextView", // styles can be additive
+ "type": "TextLabel", // styles can be additive
"parent-origin": [0.5, 0.5, 0.5],
"anchor-point": [0.5, 0.5, 0.5],
"size": [200, 200, 1],
"text": "Hello World!"
}, {
- "type": "TextView", // styles can be additive
+ "type": "TextLabel", // styles can be additive
"parent-origin": [0.0, 0.0, 0.5],
"anchor-point": [0.0, 0.0, 0.5],
"size": [200, 200, 1],
"action": "pop"
}]
}, {
- "type": "TextView", // styles can be additive
+ "type": "TextLabel", // styles can be additive
"parent-origin": [1.0, 1.0, 0.5],
"anchor-point": [1.0, 1.0, 0.5],
"size": [200, 200, 1],
"position": [0, 0, 0],
"size": [0, 100, 0],
"label-actor": {
- "type": "TextView",
+ "type": "TextLabel",
"text": "Blur"
},
"normal-state-actor": {