Working on music cross fade and settings

This commit is contained in:
Vladislav Khorev committed 2026-06-24 20:58:31 +03:00
1 parent 84f9fa37a8
commit b8d79c7b7b
13 files changed
+779 -332

No files matched your search

+92
View File
@@ -11,6 +11,98 @@
"height": "match_parent",
"texture": "resources/w/ui/img/main/bkg.png"
},
{
"type": "LinearLayout",
"orientation": "vertical",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"horizontal_align": "left",
"width": 500,
"height": 600,
"spacing": 20,
"children": [
{
"type": "TextView",
"name": "settingsTitleText",
"width": 500,
"height": 60,
"text": "Settings",
"fontSize": 40,
"textCentered": true,
"color": [1.0, 1.0, 1.0, 1.0]
},
{
"type": "TextView",
"name": "musicVolumeText",
"width": 500,
"height": 40,
"text": "Music volume: 100",
"fontSize": 32,
"textCentered": false,
"topAligned": true,
"paddingX": 10,
"color": [1.0, 1.0, 1.0, 1.0]
},
{
"type": "Slider",
"name": "musicVolumeSlider",
"width": 500,
"height": 40,
"orientation": "horizontal",
"value": 0.78125,
"interactive": true,
"textures": {
"track": "resources/w/red.png",
"knob": "resources/w/blue.png"
}
},
{
"type": "TextView",
"name": "soundVolumeText",
"width": 500,
"height": 40,
"text": "Sound volume: 80",
"fontSize": 32,
"textCentered": false,
"topAligned": true,
"paddingX": 10,
"color": [1.0, 1.0, 1.0, 1.0]
},
{
"type": "Slider",
"name": "soundVolumeSlider",
"width": 500,
"height": 40,
"orientation": "horizontal",
"value": 0.625,
"interactive": true,
"textures": {
"track": "resources/w/red.png",
"knob": "resources/w/blue.png"
}
},
{
"type": "TextButton",
"name": "musicToggleButton",
"width": 500,
"height": 60,
"text": "Music: ON",
"fontSize": 32,
"textCentered": true,
"color": [0.2, 0.9, 0.2, 1.0]
},
{
"type": "TextButton",
"name": "soundToggleButton",
"width": 500,
"height": 60,
"text": "Sound: ON",
"fontSize": 32,
"textCentered": true,
"color": [0.2, 0.9, 0.2, 1.0]
}
]
},
{
"type": "TextButton",
"name": "settingsBackButton",