space-game001/resources/config2/ui_inventory.json
2026-04-09 15:33:55 +06:00

67 lines
1.7 KiB
JSON

{
"root": {
"type": "FrameLayout",
"name": "inventory_root",
"width": "match_parent",
"height": "match_parent",
"children": [
{
"type": "TextButton",
"name": "inventory_button",
"x": 50.0,
"y": 50.0,
"width": 150.0,
"height": 60.0,
"text": "Inventory",
"fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": true,
"color": [1.0, 1.0, 1.0, 1.0],
"textures": {
"normal": "resources/connecting.png",
"hover": "resources/connecting.png",
"pressed": "resources/connecting.png"
}
},
{
"type": "FrameLayout",
"name": "inventory_items_panel",
"x": 100.0,
"y": 150.0,
"width": 500.0,
"height": 600.0,
"children": [
{
"type": "TextView",
"name": "inventory_items_text",
"x": 100.0,
"y": 30.0,
"width": 460.0,
"height": 450.0,
"text": "Inventory (Empty)",
"fontSize": 18,
"fontPath": "resources/fonts/DroidSans.ttf",
"centered": false,
"color": [1.0, 1.0, 1.0, 1.0]
},
{
"type": "TextButton",
"name": "close_inventory_button",
"x": 200.0,
"y": 20.0,
"width": 40.0,
"height": 40.0,
"text": "X",
"fontSize": 20,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": true,
"color": [1.0, 1.0, 1.0, 1.0],
"textures": {
"normal": "resources/spark.png"
}
}
]
}
]
}
}