169 lines
3.0 KiB
JSON
169 lines
3.0 KiB
JSON
{
|
|
"root": {
|
|
"type": "FrameLayout",
|
|
"x": 0,
|
|
"y": 0,
|
|
"width": 1280,
|
|
"height": 720,
|
|
"children": [
|
|
{
|
|
"type": "FrameLayout",
|
|
"name": "leftPanel",
|
|
"x": 100,
|
|
"y": 100,
|
|
"width": 320,
|
|
"height": 400,
|
|
"children": [
|
|
{
|
|
"type": "LinearLayout",
|
|
"name": "mainButtons",
|
|
"orientation": "vertical",
|
|
"spacing": 10,
|
|
"x": 0,
|
|
"y": 0,
|
|
"width": 300,
|
|
"height": 300,
|
|
"children": [
|
|
{
|
|
"type": "Button",
|
|
"name": "playButton",
|
|
"x": -1000,
|
|
"y": 500,
|
|
"width": 200,
|
|
"height": 50,
|
|
"animations": {
|
|
"buttonsExit": {
|
|
"repeat": false,
|
|
"steps": [
|
|
{
|
|
"type": "move",
|
|
"to": [
|
|
-400,
|
|
0
|
|
],
|
|
"duration": 1.0,
|
|
"easing": "easein"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"textures": {
|
|
"normal": "./resources/sand2.png",
|
|
"hover": "./resources/sand2.png",
|
|
"pressed": "./resources/sand2.png"
|
|
}
|
|
},
|
|
{
|
|
"type": "Button",
|
|
"name": "settingsButton",
|
|
"x": -1000,
|
|
"y": 400,
|
|
"width": 200,
|
|
"height": 50,
|
|
"animations": {
|
|
"buttonsExit": {
|
|
"repeat": false,
|
|
"steps": [
|
|
{
|
|
"type": "wait",
|
|
"duration": 0.5
|
|
},
|
|
{
|
|
"type": "move",
|
|
"to": [
|
|
-400,
|
|
0
|
|
],
|
|
"duration": 1.0,
|
|
"easing": "easein"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"textures": {
|
|
"normal": "./resources/sand2.png",
|
|
"hover": "./resources/sand2.png",
|
|
"pressed": "./resources/sand2.png"
|
|
}
|
|
},
|
|
{
|
|
"type": "Button",
|
|
"name": "exitButton",
|
|
"x": -1000,
|
|
"y": 300,
|
|
"width": 200,
|
|
"height": 50,
|
|
"animations": {
|
|
"buttonsExit": {
|
|
"repeat": false,
|
|
"steps": [
|
|
{
|
|
"type": "wait",
|
|
"duration": 1.0
|
|
},
|
|
{
|
|
"type": "move",
|
|
"to": [
|
|
-400,
|
|
0
|
|
],
|
|
"duration": 1.0,
|
|
"easing": "easein"
|
|
}
|
|
]
|
|
},
|
|
"bgScroll": {
|
|
"repeat": true,
|
|
"steps": [
|
|
{
|
|
"type": "move",
|
|
"to": [
|
|
1280,
|
|
0
|
|
],
|
|
"duration": 5.0,
|
|
"easing": "linear"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"textures": {
|
|
"normal": "./resources/sand2.png",
|
|
"hover": "./resources/sand2.png",
|
|
"pressed": "./resources/sand2.png"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "Slider",
|
|
"name": "velocitySlider",
|
|
"x": 1140,
|
|
"y": 100,
|
|
"width": 50,
|
|
"height": 500,
|
|
"value": 0.0,
|
|
"orientation": "vertical",
|
|
"textures": {
|
|
"track": "resources/velocitySliderTexture.png",
|
|
"knob": "resources/velocitySliderButton.png"
|
|
}
|
|
},
|
|
{
|
|
"type": "Button",
|
|
"name": "shootButton",
|
|
"x": 100,
|
|
"y": 100,
|
|
"width": 100,
|
|
"height": 100,
|
|
"textures": {
|
|
"normal": "resources/shoot_normal.png",
|
|
"hover": "resources/shoot_hover.png",
|
|
"pressed": "resources/shoot_pressed.png"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
} |