| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410 |
- {
- "library" : [
- "config/widgets/settings/library.json",
- "config/widgets/commonPrimitives.json",
- ],
- "items":
- [
- {
- "name": "lineAnimationSpeed",
- "type": "horizontalLine",
- "rect": { "x" : 5, "y" : 349, "w": 365, "h": 3}
- },
- {
- "type" : "labelTitle",
- "text": "core.genrltxt.396", // Auto-combat options
- "position": {"x": 380, "y": 55}
- },
- /////////////////////////////////////// Right section - Auto-combat settings (NOT IMPLEMENTED)
- {
- "name": "autoCombatLabels",
- "type" : "verticalLayout",
- "customType" : "labelDescription",
- "position": {"x": 415, "y": 85},
- "items":
- [
- {
- "text": "core.genrltxt.398" // Creatures
- },
- {
- "text": "core.genrltxt.399" // Spells
- },
- {
- "text": "core.genrltxt.400" // Catapult
- },
- {
- "text": "core.genrltxt.151" // Ballista
- },
- {
- "text": "core.genrltxt.401" // First Aid Tent
- },
- {
- "text": "vcmi.battleOptions.endWithAutocombat.hover"
- }
- ]
- },
- {
- "name": "autoCombatFakeCheckboxes",
- "type" : "verticalLayout",
- "customType" : "checkboxFake",
- "position": {"x": 380, "y": 83},
- "items":
- [
- {}
- ]
- },
- {
- "type" : "verticalLayout",
- "customType" : "checkbox",
- "position": {"x": 380, "y": 113},
- "items":
- [
- {
- "name": "enableAutocombatSpellsCheckbox",
- "callback": "enableAutocombatSpellsChanged"
- }
- ]
- },
- {
- "name": "autoCombatFakeCheckboxes2",
- "type" : "verticalLayout",
- "customType" : "checkboxFake",
- "position": {"x": 380, "y": 143},
- "items":
- [
- {},
- {},
- {}
- ]
- },
- {
- "type" : "verticalLayout",
- "customType" : "checkbox",
- "position": {"x": 380, "y": 233},
- "items":
- [
- {
- "help": "vcmi.battleOptions.endWithAutocombat",
- "name": "endWithAutocombatCheckbox",
- "callback": "endWithAutocombatChanged"
- }
- ]
- },
- /////////////////////////////////////// Left section - checkboxes
- {
- "name": "generalOptionsLabels",
- "type" : "verticalLayout",
- "customType" : "labelDescription",
- "position": {"x": 45, "y": 55},
- "items":
- [
- {
- "text": "core.genrltxt.404",
- },
- {
- "text": "core.genrltxt.405",
- },
- {
- "text": "vcmi.battleOptions.movementHighlightOnHover.hover",
- },
- {
- "text": "vcmi.battleOptions.rangeLimitHighlightOnHover.hover",
- },
- {
- "text": "vcmi.battleOptions.showHealthBar.hover",
- },
- {
- "text": "vcmi.battleOptions.showStickyHeroInfoWindows.hover",
- },
- {
- "text": "vcmi.battleOptions.showQuickSpell.hover",
- },
- {
- "text": "core.genrltxt.406",
- },
- {
- "text": "vcmi.battleOptions.skipBattleIntroMusic.hover",
- }
- ]
- },
- {
- "type" : "verticalLayout",
- "customType" : "checkbox",
- "position": {"x": 10, "y": 53},
- "items":
- [
- {
- "name": "viewGridCheckbox",
- "help": "core.help.427",
- "callback": "viewGridChanged"
- },
- {
- "name": "movementShadowCheckbox",
- "help": "core.help.428",
- "callback": "movementShadowChanged"
- },
- {
- "name": "movementHighlightOnHoverCheckbox",
- "help": "vcmi.battleOptions.movementHighlightOnHover",
- "callback": "movementHighlightOnHoverChanged"
- },
- {
- "name": "rangeLimitHighlightOnHoverCheckbox",
- "help": "vcmi.battleOptions.rangeLimitHighlightOnHover",
- "callback": "rangeLimitHighlightOnHoverChanged"
- },
- {
- "name": "showHealthBarCheckbox",
- "help": "vcmi.battleOptions.showHealthBar",
- "callback": "showHealthBarChanged"
- },
- {
- "name": "showStickyHeroInfoWindowsCheckbox",
- "help": "vcmi.battleOptions.showStickyHeroInfoWindows",
- "callback": "showStickyHeroWindowsChanged"
- },
- {
- "name": "showQuickSpellCheckbox",
- "help": "vcmi.battleOptions.showQuickSpell",
- "callback": "showQuickSpellChanged"
- },
- {
- "name": "mouseShadowCheckbox",
- "help": "core.help.429",
- "callback": "mouseShadowChanged"
- },
- {
- "name": "skipBattleIntroMusicCheckbox",
- "help": "vcmi.battleOptions.skipBattleIntroMusic",
- "callback": "skipBattleIntroMusicChanged"
- }
- ]
- },
- /////////////////////////////////////// Bottom section - Animation Speed and Turn Order
- {
- "name": "frameAnimationSpeed",
- "type": "picture",
- "image": "settingsWindow/frameMovement",
- "position": {"x": 6, "y": 350 }
- },
- {
- "name": "animationSpeedLabel",
- "type": "labelCentered",
- "text": "core.genrltxt.393",
- "position": {"x": 150, "y": 362}
- },
- {
- "name": "animationSpeedValueLabel",
- "type": "labelCentered",
- "position": {"x": 324, "y": 390}
- },
- {
- "name": "animationSpeedPicker",
- "type": "toggleGroup",
- "position": {"x": 10, "y": 373},
- "items":
- [
- {
- "index": 1,
- "type": "toggleButton",
- "image": "settingsWindow/button46",
- "help": "vcmi.battleOptions.animationsSpeed1",
- "position": {"x": 0, "y": 0},
- "items":
- [
- {
- "name": "battleScrollSpeed1",
- "type": "picture",
- "image": "settingsWindow/scrollSpeed1",
- "position": {"x": 0, "y": 0 }
- }
- ]
- },
- {
- "index": 2,
- "type": "toggleButton",
- "image": "settingsWindow/button46",
- "help": "core.help.422",
- "position": {"x": 48, "y": 0},
- "items":
- [
- {
- "name": "battleScrollSpeed2",
- "type": "picture",
- "image": "settingsWindow/scrollSpeed2",
- "position": {"x": 0, "y": 0 }
- }
- ]
- },
- {
- "index": 3,
- "type": "toggleButton",
- "image": "settingsWindow/button46",
- "help": "core.help.423",
- "position": {"x":96, "y": 0},
- "items":
- [
- {
- "name": "battleScrollSpeed3",
- "type": "picture",
- "image": "settingsWindow/scrollSpeed3",
- "position": {"x": 0, "y": 0 }
- }
- ]
- },
- {
- "index": 6,
- "type": "toggleButton",
- "image": "settingsWindow/button46",
- "help": "core.help.424",
- "position": {"x": 144, "y": 0},
- "items":
- [
- {
- "name": "battleScrollSpeed4",
- "type": "picture",
- "image": "settingsWindow/scrollSpeed4",
- "position": {"x": 0, "y": 0 }
- }
- ]
- },
- {
- "index": 9,
- "type": "toggleButton",
- "image": "settingsWindow/button46",
- "help": "vcmi.battleOptions.animationsSpeed5",
- "position": {"x": 192, "y": 0},
- "items":
- [
- {
- "name": "battleScrollSpeed5",
- "type": "picture",
- "image": "settingsWindow/scrollSpeed5",
- "position": {"x": 0, "y": 0 }
- }
- ]
- },
- {
- "index": 18,
- "type": "toggleButton",
- "image": "settingsWindow/button46",
- "help": "vcmi.battleOptions.animationsSpeed6",
- "position": {"x": 240, "y": 0},
- "items":
- [
- {
- "name": "battleScrollSpeed6",
- "type": "picture",
- "image": "settingsWindow/scrollSpeed6",
- "position": {"x": 0, "y": 0 }
- }
- ]
- }
- ],
- "callback": "animationSpeedChanged"
- },
- {
- "name": "frameQueueSize",
- "type": "picture",
- "image": "settingsWindow/frameStackQueue",
- "position": {"x": 6, "y": 410 }
- },
- {
- "name": "queueSizeLabel",
- "type": "label",
- "font": "medium",
- "alignment": "center",
- "color": "yellow",
- "text": "vcmi.battleOptions.queueSizeLabel.hover",
- "position": {"x": 170, "y": 422}
- },
- {
- "name": "queueSizePicker",
- "type": "toggleGroup",
- "position": {"x": 10, "y": 434},
- "items":
- [
- {
- "index": -1, //off
- "type": "toggleButton",
- "image": "settingsWindow/button80",
- "help": "vcmi.battleOptions.queueSizeAutoButton",
- "position": {"x": 0, "y": 0},
- "items":
- [
- {
- "name": "queueSizeNoneText",
- "type": "label",
- "font": "medium",
- "alignment": "center",
- "color": "yellow",
- "text": "vcmi.battleOptions.queueSizeNoneButton.hover"
- }
- ]
- },
- {
- "index": 0, //auto
- "type": "toggleButton",
- "image": "settingsWindow/button80",
- "help": "vcmi.battleOptions.queueSizeAutoButton",
- "position": {"x": 85, "y": 0},
- "items":
- [
- {
- "name": "queueSizeAutoText",
- "type": "label",
- "font": "medium",
- "alignment": "center",
- "color": "yellow",
- "text": "vcmi.battleOptions.queueSizeAutoButton.hover"
- }
- ]
- },
- {
- "index": 1, //small
- "type": "toggleButton",
- "image": "settingsWindow/button80",
- "help": "vcmi.battleOptions.queueSizeSmallButton",
- "position": {"x": 170, "y": 0},
- "items":
- [
- {
- "name": "queueSizeSmallText",
- "type": "label",
- "font": "medium",
- "alignment": "center",
- "color": "yellow",
- "text": "vcmi.battleOptions.queueSizeSmallButton.hover"
- }
- ]
- },
- {
- "index": 2, //large
- "type": "toggleButton",
- "image": "settingsWindow/button80",
- "help": "vcmi.battleOptions.queueSizeBigButton",
- "position": {"x": 255, "y": 0},
- "items":
- [
- {
- "name": "queueSizeBigText",
- "type": "label",
- "font": "medium",
- "alignment": "center",
- "color": "yellow",
- "text": "vcmi.battleOptions.queueSizeBigButton.hover"
- }
- ]
- }
- ],
- "callback": "queueSizeChanged"
- }
- ]
- }
|