{ "root": { "type": "FrameLayout", "x": 0, "y": 0, "width": "match_parent", "height": "match_parent", "children": [ { "type": "TextView", "name": "gameScoreText", "x": 0, "y": 30, "width": 200, "height": 60, "horizontal_gravity": "left", "vertical_gravity": "top", "text": "Score: 0", "fontSize": 36, "color": [ 0, 217, 255, 1 ], "centered": false }, { "type": "Button", "name": "showPlayersButton", "x": 0, "y": 100, "width": 150, "height": 150, "horizontal_gravity": "left", "vertical_gravity": "top", "textures": { "normal": "resources/button_players.png", "hover": "resources/button_players.png", "pressed": "resources/button_players.png", "disabled": "resources/button_players.png" } }, { "type": "Button", "name": "shootButton", "x": 0, "y": 0, "width": 150, "height": 150, "horizontal_gravity": "right", "vertical_gravity": "bottom", "textures": { "normal": "resources/fire.png", "hover": "resources/fire.png", "pressed": "resources/fire2.png", "disabled": "resources/fire_disabled.png" } }, { "type": "Button", "name": "shootButton2", "x": 0, "y": 0, "width": 150, "height": 150, "horizontal_gravity": "left", "vertical_gravity": "bottom", "textures": { "normal": "resources/fire.png", "hover": "resources/fire.png", "pressed": "resources/fire2.png", "disabled": "resources/fire_disabled.png" } }, { "type": "Button", "name": "minusButton", "x": -20, "y": 110, "width": 150, "height": 150, "border" : 20, "horizontal_gravity": "right", "vertical_gravity": "bottom", "textures": { "normal": "resources/button_minus.png", "hover": "resources/button_minus.png", "pressed": "resources/button_minus_pressed.png", "disabled" : "resources/button_minus_disabled.png" } }, { "type": "Button", "name": "plusButton", "x": -20, "y": 220, "width": 150, "height": 150, "border" : 20, "horizontal_gravity": "right", "vertical_gravity": "bottom", "textures": { "normal": "resources/button_plus.png", "hover": "resources/button_plus.png", "pressed": "resources/button_plus_pressed.png", "disabled" : "resources/button_plus_disabled.png" } }, { "type": "Button", "name": "takeButton", "x": -20, "y": 320, "width": 150, "height": 150, "border" : 20, "horizontal_gravity": "right", "vertical_gravity": "bottom", "textures": { "normal": "resources/button_take.png", "hover": "resources/button_take.png", "pressed": "resources/button_take_pressed.png", "disabled" : "resources/button_take_disabled.png" } } ] } }