2007-10-09 16:44:44 +00:00
|
|
|
{
|
|
|
|
"My Scene" : {
|
|
|
|
"id" : "main-stage",
|
|
|
|
"type" : "ClutterStage",
|
|
|
|
"color" : "white",
|
|
|
|
"width" : 500,
|
2007-10-25 14:46:02 +00:00
|
|
|
"height" : 400,
|
2007-11-15 15:24:43 +00:00
|
|
|
"signals" : [
|
|
|
|
{ "name" : "key-press-event", "handler" : "clutter_main_quit" }
|
|
|
|
],
|
2007-10-09 16:44:44 +00:00
|
|
|
"children" : [
|
|
|
|
{
|
|
|
|
"id" : "red-button",
|
|
|
|
"type" : "ClutterRectangle",
|
|
|
|
"color" : "#ff0000ff",
|
2007-11-14 13:36:31 +00:00
|
|
|
"x" : 50, "y" : 50, "width" : 100, "height" : 100,
|
2007-10-09 16:44:44 +00:00
|
|
|
"visible" : true,
|
2007-10-25 14:46:02 +00:00
|
|
|
"reactive" : true,
|
2007-11-14 13:36:31 +00:00
|
|
|
"behaviours" : [ "fade-behaviour", "path-behaviour" ],
|
2007-10-09 16:44:44 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"id" : "green-button",
|
|
|
|
"type" : "ClutterRectangle",
|
|
|
|
"color" : "#00ff00ff",
|
2007-10-27 19:49:39 +00:00
|
|
|
"border-width" : 5,
|
|
|
|
"border-color" : "#00cc00ff",
|
2007-10-09 16:44:44 +00:00
|
|
|
"x" : 200,
|
|
|
|
"y" : 50,
|
|
|
|
"width" : 100,
|
|
|
|
"height" : 100,
|
|
|
|
"visible" : true,
|
2007-10-25 14:46:02 +00:00
|
|
|
"reactive" : true
|
2007-11-15 15:24:43 +00:00
|
|
|
"signals" : [
|
|
|
|
{ "name" : "button-press-event", "handler" : "clutter_main_quit" }
|
|
|
|
]
|
2007-10-18 12:31:07 +00:00
|
|
|
},
|
2007-10-09 16:44:44 +00:00
|
|
|
{
|
|
|
|
"id" : "red-hand",
|
|
|
|
"type" : "ClutterTexture",
|
|
|
|
"pixbuf" : "redhand.png",
|
|
|
|
"x" : 50,
|
2007-11-14 13:36:31 +00:00
|
|
|
"y" : 150,
|
2007-11-15 15:24:43 +00:00
|
|
|
"width" : 100,
|
|
|
|
"height" : 100,
|
2007-10-09 16:44:44 +00:00
|
|
|
"opacity" : 100,
|
|
|
|
"visible" : true,
|
|
|
|
"behaviours" : [ "rotate-behaviour", "fade-behaviour" ]
|
2007-10-18 12:31:07 +00:00
|
|
|
},
|
2007-11-14 13:36:31 +00:00
|
|
|
{
|
|
|
|
"id" : "red-hand-clone",
|
|
|
|
"type" : "ClutterCloneTexture",
|
|
|
|
"parent-texture" : "red-hand",
|
|
|
|
"x" : 250,
|
|
|
|
"y" : 150,
|
|
|
|
"opacity" : 100,
|
|
|
|
"visible" : true
|
|
|
|
},
|
2007-10-25 14:46:02 +00:00
|
|
|
{
|
|
|
|
"id" : "label",
|
|
|
|
"type" : "ClutterLabel",
|
|
|
|
"x" : 50,
|
|
|
|
"y" : 200,
|
|
|
|
"width" : 400,
|
|
|
|
"text" : "Clutter\tScript",
|
|
|
|
"font-name" : "Sans 24px",
|
|
|
|
"color" : "black",
|
|
|
|
"alignment" : "center",
|
|
|
|
"wrap" : false,
|
|
|
|
"ellipsize" : "none",
|
|
|
|
"visible" : true
|
|
|
|
}
|
|
|
|
"blue-button",
|
2007-10-09 16:44:44 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|