Make Widgets clickable

This commit is contained in:
2021-01-16 21:58:42 +01:00
parent 7e9702431f
commit f187a25e9e
13 changed files with 156 additions and 30 deletions

View File

@@ -1,6 +1,7 @@
{
"loadingScreen": [
{
"unique_name": "widget0",
"position": [0.0, 0.0],
"dimensions": [1.0, 1.0],
"texture": "data/res/textures/loading.png"
@@ -8,14 +9,22 @@
],
"mainMenuScreen": [
{
"unique_name": "widget1",
"position": [0.5, 0.5],
"dimensions": [0.25, 0.25],
"texture": "data/res/textures/container.png"
},
{
"unique_name": "widget2",
"position": [0.75, 0.0],
"dimensions": [0.25, 0.25],
"texture": "data/res/textures/tex2.png"
},
{
"unique_name": "widget3",
"position": [0.05, 0.05],
"dimensions": [0.35, 0.35],
"texture": "data/res/textures/loading.png"
}
]
}