2023-01-29 17:49:47 +02:00
|
|
|
{
|
2023-05-14 23:53:26 +02:00
|
|
|
"customTypes" : {
|
|
|
|
"labelTitle" : {
|
|
|
|
"type": "label",
|
|
|
|
"font": "medium",
|
|
|
|
"alignment": "left",
|
|
|
|
"color": "yellow"
|
|
|
|
},
|
|
|
|
"labelAudio" : {
|
|
|
|
"type": "label",
|
|
|
|
"font": "medium",
|
|
|
|
"alignment": "center",
|
|
|
|
"color": "yellow"
|
|
|
|
},
|
|
|
|
"labelDescription" : {
|
|
|
|
"type": "label",
|
|
|
|
"font": "medium",
|
|
|
|
"alignment": "left",
|
|
|
|
"color": "white"
|
|
|
|
},
|
|
|
|
"checkbox" : {
|
|
|
|
"type": "toggleButton",
|
|
|
|
"image": "sysopchk.def",
|
|
|
|
},
|
|
|
|
"buttonGear" : {
|
|
|
|
"type": "button",
|
|
|
|
"image": "settingsWindow/button32",
|
|
|
|
"items":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"name": "gearIcon",
|
|
|
|
"type": "picture",
|
|
|
|
"image": "settingsWindow/gear",
|
|
|
|
"position": {"x": 0, "y": 0 }
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"audioSlider" : {
|
|
|
|
"type": "slider",
|
|
|
|
"scrollBounds" : { "x" : -4, "y" : -34, "w" : 208, "h" : 52 },
|
|
|
|
"size": 200,
|
|
|
|
"style": "brown",
|
|
|
|
"orientation": "horizontal",
|
|
|
|
"itemsVisible": 0,
|
|
|
|
"itemsTotal": 100,
|
2023-05-15 11:48:58 +02:00
|
|
|
},
|
|
|
|
"verticalLayout" : {
|
|
|
|
"type" : "layout",
|
|
|
|
"vertical" : true,
|
|
|
|
"dynamic" : false,
|
|
|
|
"distance" : 30
|
2023-05-14 23:53:26 +02:00
|
|
|
}
|
|
|
|
},
|
2023-05-15 11:48:58 +02:00
|
|
|
|
2023-01-29 17:49:47 +02:00
|
|
|
"items":
|
|
|
|
[
|
2023-03-03 18:14:20 +02:00
|
|
|
{
|
|
|
|
"name": "lineLabelsEnd",
|
|
|
|
"type": "texture",
|
|
|
|
"image": "settingsWindow/lineHorizontal",
|
|
|
|
"rect": { "x" : 5, "y" : 289, "w": 365, "h": 3}
|
|
|
|
},
|
2023-03-04 00:33:16 +02:00
|
|
|
{
|
2023-05-14 23:53:26 +02:00
|
|
|
"type" : "labelTitle",
|
|
|
|
"position": {"x": 10, "y": 55},
|
|
|
|
"text": "vcmi.systemOptions.videoGroup"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type" : "labelTitle",
|
|
|
|
"position": {"x": 380, "y": 55},
|
|
|
|
"text": "vcmi.systemOptions.audioGroup"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type" : "labelTitle",
|
|
|
|
"position": {"x": 10, "y": 295},
|
|
|
|
"text": "vcmi.systemOptions.townsGroup"
|
2023-03-04 00:33:16 +02:00
|
|
|
},
|
2023-03-05 15:47:16 +02:00
|
|
|
/////////////////////////////////////// Left section - Video Settings
|
2023-03-04 00:33:16 +02:00
|
|
|
{
|
2023-05-15 11:48:58 +02:00
|
|
|
"type" : "verticalLayout",
|
|
|
|
"customType" : "labelDescription",
|
|
|
|
"position" : {"x": 45, "y": 85},
|
|
|
|
"items" : [
|
|
|
|
{
|
|
|
|
"name": "resolutionLabel",
|
|
|
|
"text": "vcmi.systemOptions.resolutionButton.hover"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "scalingLabel",
|
|
|
|
"text": "vcmi.systemOptions.scalingButton.hover"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "vcmi.systemOptions.fullscreenButton.hover"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "vcmi.systemOptions.framerateButton.hover"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "core.genrltxt.577"
|
|
|
|
}
|
|
|
|
]
|
2023-01-29 17:49:47 +02:00
|
|
|
},
|
2023-03-05 15:47:16 +02:00
|
|
|
{
|
2023-05-15 11:48:58 +02:00
|
|
|
"type" : "verticalLayout",
|
|
|
|
"customType" : "checkbox",
|
|
|
|
"position" : {"x": 10, "y": 83},
|
|
|
|
"items" : [
|
|
|
|
{
|
|
|
|
"name": "resolutionButton",
|
|
|
|
"type": "buttonGear",
|
|
|
|
"help": "vcmi.systemOptions.resolutionButton",
|
|
|
|
"callback": "setGameResolution",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "scalingButton",
|
|
|
|
"type": "buttonGear",
|
|
|
|
"help": "vcmi.systemOptions.scalingButton",
|
|
|
|
"callback": "setGameScaling",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "fullscreenCheckbox",
|
|
|
|
"help": "vcmi.systemOptions.fullscreenButton",
|
|
|
|
"callback": "fullscreenChanged"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "framerateCheckbox",
|
|
|
|
"help": "vcmi.systemOptions.framerateButton",
|
|
|
|
"callback": "framerateChanged"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "spellbookAnimationCheckbox",
|
|
|
|
"help": "core.help.364",
|
|
|
|
"callback": "spellbookAnimationChanged"
|
|
|
|
},
|
|
|
|
]
|
2023-03-05 15:47:16 +02:00
|
|
|
},
|
|
|
|
/////////////////////////////////////// Right section - Audio Settings
|
|
|
|
{
|
2023-05-14 23:53:26 +02:00
|
|
|
"type" : "labelAudio",
|
|
|
|
"position": {"x": 460, "y": 98},
|
|
|
|
"text": "core.genrltxt.394" // Music Volume
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type" : "labelAudio",
|
|
|
|
"position": {"x": 460, "y": 158},
|
|
|
|
"text": "core.genrltxt.395" // Effects volume
|
2023-03-05 15:47:16 +02:00
|
|
|
},
|
2023-03-03 15:23:37 +02:00
|
|
|
{
|
|
|
|
"name": "frameMusic",
|
|
|
|
"type": "picture",
|
|
|
|
"image": "settingsWindow/frameAudio",
|
2023-03-03 18:14:20 +02:00
|
|
|
"position": {"x": 380, "y": 80 }
|
2023-03-03 15:23:37 +02:00
|
|
|
},
|
2023-01-29 17:49:47 +02:00
|
|
|
{
|
|
|
|
"name": "musicSlider",
|
2023-05-14 23:53:26 +02:00
|
|
|
"type": "audioSlider",
|
2023-03-03 18:14:20 +02:00
|
|
|
"position": {"x": 385, "y": 115},
|
2023-01-29 17:49:47 +02:00
|
|
|
"callback": "setMusic"
|
|
|
|
},
|
2023-03-04 00:33:16 +02:00
|
|
|
{
|
|
|
|
"name": "musicValueLabel",
|
2023-05-14 23:53:26 +02:00
|
|
|
"type": "labelAudio",
|
2023-03-04 00:33:16 +02:00
|
|
|
"position": {"x": 565, "y": 98}
|
|
|
|
},
|
2023-03-03 15:23:37 +02:00
|
|
|
{
|
2023-03-03 16:14:32 +02:00
|
|
|
"name": "frameSound",
|
2023-03-03 15:23:37 +02:00
|
|
|
"type": "picture",
|
|
|
|
"image": "settingsWindow/frameAudio",
|
2023-03-03 18:14:20 +02:00
|
|
|
"position": {"x": 380, "y": 140 }
|
2023-03-03 15:23:37 +02:00
|
|
|
},
|
2023-01-29 17:49:47 +02:00
|
|
|
{
|
|
|
|
"name": "soundVolumeSlider",
|
2023-05-14 23:53:26 +02:00
|
|
|
"type": "audioSlider",
|
2023-03-03 18:14:20 +02:00
|
|
|
"position": {"x": 385, "y": 175},
|
2023-01-29 17:49:47 +02:00
|
|
|
"callback": "setVolume"
|
2023-02-14 00:53:28 +02:00
|
|
|
},
|
2023-03-04 00:33:16 +02:00
|
|
|
{
|
|
|
|
"name": "soundValueLabel",
|
2023-05-14 23:53:26 +02:00
|
|
|
"type": "labelAudio",
|
2023-03-04 00:33:16 +02:00
|
|
|
"position": {"x": 565, "y": 158}
|
|
|
|
},
|
2023-03-05 15:47:16 +02:00
|
|
|
/////////////////////////////////////// Bottom section - Towns Settings
|
2023-02-14 00:53:28 +02:00
|
|
|
{
|
2023-05-15 11:48:58 +02:00
|
|
|
"type" : "verticalLayout",
|
|
|
|
"customType" : "labelDescription",
|
|
|
|
"position": {"x": 45, "y": 325},
|
|
|
|
"items" : [
|
|
|
|
{
|
|
|
|
"text": "vcmi.otherOptions.creatureGrowthAsDwellingLabel.hover",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "vcmi.otherOptions.availableCreaturesAsDwellingLabel.hover",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "vcmi.otherOptions.compactTownCreatureInfo.hover",
|
|
|
|
}
|
|
|
|
]
|
2023-02-14 00:53:28 +02:00
|
|
|
},
|
|
|
|
{
|
2023-03-05 15:47:16 +02:00
|
|
|
"name": "availableCreaturesAsDwellingPicker",
|
|
|
|
"type": "toggleGroup",
|
2023-05-15 11:48:58 +02:00
|
|
|
"callback": "availableCreaturesAsDwellingChanged"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type" : "verticalLayout",
|
|
|
|
"customType" : "checkbox",
|
2023-03-03 18:14:20 +02:00
|
|
|
"position": {"x": 10, "y": 323},
|
2023-03-05 15:47:16 +02:00
|
|
|
"items":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"help": "vcmi.otherOptions.creatureGrowthAsDwellingLabel",
|
2023-05-15 11:48:58 +02:00
|
|
|
"group" : "availableCreaturesAsDwellingPicker",
|
|
|
|
"index": 0
|
2023-03-05 16:50:47 +02:00
|
|
|
},
|
2023-03-05 15:47:16 +02:00
|
|
|
{
|
|
|
|
"help": "vcmi.otherOptions.availableCreaturesAsDwellingLabel",
|
2023-05-15 11:48:58 +02:00
|
|
|
"group" : "availableCreaturesAsDwellingPicker",
|
|
|
|
"index": 1
|
2023-03-05 15:47:16 +02:00
|
|
|
},
|
2023-05-15 11:48:58 +02:00
|
|
|
{
|
|
|
|
"name": "compactTownCreatureInfoCheckbox",
|
|
|
|
"help": "vcmi.otherOptions.compactTownCreatureInfo",
|
|
|
|
"callback": "compactTownCreatureInfoChanged"
|
|
|
|
}
|
|
|
|
]
|
2023-01-29 17:49:47 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|