1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-10 00:43:59 +02:00
vcmi/config/widgets/settings/generalOptionsTab.json

183 lines
4.3 KiB
JSON
Raw Normal View History

{
"library" : "config/widgets/settings/library.json",
"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}
},
{
"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"
},
/////////////////////////////////////// Left section - Video Settings
{
"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"
}
]
},
{
"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"
},
]
},
/////////////////////////////////////// Right section - Audio Settings
{
"type" : "labelCentered",
"position": {"x": 460, "y": 98},
"text": "core.genrltxt.394" // Music Volume
},
{
"type" : "labelCentered",
"position": {"x": 460, "y": 158},
"text": "core.genrltxt.395" // Effects volume
},
{
"name": "frameMusic",
"type": "picture",
"image": "settingsWindow/frameAudio",
2023-03-03 18:14:20 +02:00
"position": {"x": 380, "y": 80 }
},
{
"name": "musicSlider",
"type": "audioSlider",
2023-03-03 18:14:20 +02:00
"position": {"x": 385, "y": 115},
"callback": "setMusic"
},
{
"name": "musicValueLabel",
"type": "labelCentered",
"position": {"x": 565, "y": 98}
},
{
2023-03-03 16:14:32 +02:00
"name": "frameSound",
"type": "picture",
"image": "settingsWindow/frameAudio",
2023-03-03 18:14:20 +02:00
"position": {"x": 380, "y": 140 }
},
{
"name": "soundVolumeSlider",
"type": "audioSlider",
2023-03-03 18:14:20 +02:00
"position": {"x": 385, "y": 175},
"callback": "setVolume"
},
{
"name": "soundValueLabel",
"type": "labelCentered",
"position": {"x": 565, "y": 158}
},
/////////////////////////////////////// Bottom section - Towns Settings
{
"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",
}
]
},
{
"name": "availableCreaturesAsDwellingPicker",
"type": "toggleGroup",
"callback": "availableCreaturesAsDwellingChanged"
},
{
"name": "availableCreaturesAsDwellingPicker",
"type": "toggleGroup",
2023-03-03 18:14:20 +02:00
"position": {"x": 10, "y": 323},
"items":
[
{
"index": 0,
"type": "checkbox",
"help": "vcmi.otherOptions.creatureGrowthAsDwellingLabel",
"position": {"x": 0, "y": 0}
2023-03-05 16:50:47 +02:00
},
{
"index": 1,
"type": "checkbox",
"help": "vcmi.otherOptions.availableCreaturesAsDwellingLabel",
"position": {"x": 0, "y": 30}
},
],
"callback": "availableCreaturesAsDwellingChanged"
},
{
"name": "compactTownCreatureInfoCheckbox",
"type": "checkbox",
"help": "vcmi.otherOptions.compactTownCreatureInfo",
"position": {"x": 10, "y": 383},
"callback": "compactTownCreatureInfoChanged"
}
]
}