2023-11-09 16:41:00 +02:00
|
|
|
{
|
2024-02-18 22:15:31 +02:00
|
|
|
"library" : [
|
|
|
|
"config/widgets/turnOptionsDropdownLibrary.json",
|
|
|
|
"config/widgets/commonPrimitives.json",
|
|
|
|
],
|
2023-11-23 17:20:32 +02:00
|
|
|
|
2023-11-09 16:41:00 +02:00
|
|
|
"customTypes" : {
|
|
|
|
"verticalLayout66" : {
|
|
|
|
"type" : "layout",
|
|
|
|
"vertical" : true,
|
|
|
|
"dynamic" : false,
|
|
|
|
"distance" : 66
|
|
|
|
},
|
|
|
|
"labelTitle" : {
|
|
|
|
"type": "label",
|
|
|
|
"font": "small",
|
|
|
|
"alignment": "left",
|
|
|
|
"color": "yellow"
|
|
|
|
},
|
|
|
|
"labelDescription" : {
|
|
|
|
"type": "multiLineLabel",
|
2023-11-09 20:37:41 +02:00
|
|
|
"font": "tiny",
|
2023-11-09 16:41:00 +02:00
|
|
|
"alignment": "center",
|
|
|
|
"color": "white",
|
|
|
|
"rect": {"x": 0, "y": 0, "w": 300, "h": 35},
|
|
|
|
"adoptHeight": true
|
|
|
|
},
|
|
|
|
"timeInput" : {
|
|
|
|
"type": "textInput",
|
|
|
|
"alignment": "center",
|
|
|
|
"text": "00:00",
|
2023-11-09 20:37:41 +02:00
|
|
|
"rect": {"x": 0, "y": 0, "w": 86, "h": 23},
|
2023-11-09 16:41:00 +02:00
|
|
|
"offset": {"x": 0, "y": 0}
|
2023-11-09 20:37:41 +02:00
|
|
|
},
|
|
|
|
"timeInputBackground" : {
|
2024-02-18 22:47:40 +02:00
|
|
|
"type": "boxWithBackground",
|
|
|
|
"rect": {"x": 0, "y": 0, "w": 86, "h": 23}
|
2023-11-09 16:41:00 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"items":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"name": "background",
|
|
|
|
"type": "picture",
|
|
|
|
"image": "RANMAPBK",
|
|
|
|
"position": {"x": 0, "y": 6}
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
"name": "labelTitle",
|
|
|
|
"type": "label",
|
|
|
|
"font": "big",
|
|
|
|
"alignment": "center",
|
|
|
|
"color": "yellow",
|
|
|
|
"text": "vcmi.optionsTab.turnOptions.hover",
|
|
|
|
"position": {"x": 222, "y": 36}
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
"name": "labelSubTitle",
|
|
|
|
"type": "multiLineLabel",
|
|
|
|
"font": "small",
|
|
|
|
"alignment": "center",
|
|
|
|
"color": "white",
|
|
|
|
"text": "vcmi.optionsTab.turnOptions.help",
|
|
|
|
"rect": {"x": 60, "y": 48, "w": 320, "h": 0},
|
|
|
|
"adoptHeight": true
|
|
|
|
},
|
2024-01-18 16:23:12 +02:00
|
|
|
|
2023-11-23 17:20:32 +02:00
|
|
|
{
|
|
|
|
"type" : "dropDownTimers",
|
|
|
|
"name": "timerPresetSelector",
|
|
|
|
"position": {"x": 160, "y": 78},
|
|
|
|
"dropDownPosition": {"x": 0, "y": 20}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type" : "dropDownSimturns",
|
|
|
|
"name": "simturnsPresetSelector",
|
|
|
|
"position": {"x": 160, "y": 98},
|
|
|
|
"dropDownPosition": {"x": 0, "y": 20}
|
|
|
|
},
|
|
|
|
|
2023-11-09 20:37:41 +02:00
|
|
|
{
|
|
|
|
"type": "texture",
|
|
|
|
"image": "DiBoxBck",
|
|
|
|
"color" : "blue",
|
2023-11-10 17:18:49 +02:00
|
|
|
"rect": {"x" : 64, "y" : 394, "w": 316, "h": 124}
|
2023-11-09 20:37:41 +02:00
|
|
|
},
|
2024-01-18 16:23:12 +02:00
|
|
|
|
2023-11-09 20:37:41 +02:00
|
|
|
{
|
2024-02-18 22:15:31 +02:00
|
|
|
"type": "boxWithNoBackground",
|
|
|
|
"rect": {"x" : 64, "y" : 394, "w": 316, "h": 124}
|
2023-11-09 20:37:41 +02:00
|
|
|
},
|
2024-02-18 22:15:31 +02:00
|
|
|
{
|
|
|
|
"type": "horizontalLine",
|
|
|
|
"rect": {"x" : 65, "y" : 416, "w": 314, "h": 2}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "horizontalLine",
|
|
|
|
"rect": {"x" : 65, "y" : 466, "w": 314, "h": 2}
|
|
|
|
},
|
|
|
|
|
2023-11-09 16:41:00 +02:00
|
|
|
{
|
|
|
|
"type" : "verticalLayout66",
|
|
|
|
"customType" : "labelTitle",
|
2023-11-23 17:20:32 +02:00
|
|
|
"position": {"x": 70, "y": 133},
|
2023-11-09 16:41:00 +02:00
|
|
|
"items":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"text": "vcmi.optionsTab.chessFieldBase.hover"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "vcmi.optionsTab.chessFieldTurn.hover"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "vcmi.optionsTab.chessFieldBattle.hover"
|
|
|
|
},
|
|
|
|
{
|
2023-12-07 16:36:44 +02:00
|
|
|
"text": "vcmi.optionsTab.chessFieldUnit.hover"
|
2023-11-09 16:41:00 +02:00
|
|
|
},
|
|
|
|
{
|
2023-12-07 16:36:44 +02:00
|
|
|
"text": "vcmi.optionsTab.simturnsTitle"
|
2023-11-09 16:41:00 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
"type" : "verticalLayout66",
|
|
|
|
"customType" : "labelDescription",
|
2023-11-09 20:37:41 +02:00
|
|
|
"position": {"x": 70, "y": 155},
|
2023-11-09 16:41:00 +02:00
|
|
|
"items":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"text": "vcmi.optionsTab.chessFieldBase.help"
|
|
|
|
},
|
|
|
|
{
|
2023-12-07 16:36:44 +02:00
|
|
|
"name": "chessFieldTurnLabel"
|
2023-11-09 16:41:00 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "vcmi.optionsTab.chessFieldBattle.help"
|
|
|
|
},
|
|
|
|
{
|
2023-12-07 16:36:44 +02:00
|
|
|
"name": "chessFieldUnitLabel"
|
2023-11-09 16:41:00 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2023-11-23 17:20:32 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
"name": "buttonTurnTimerAccumulate",
|
|
|
|
"position": {"x": 160, "y": 195},
|
|
|
|
"type": "toggleButton",
|
2023-11-23 19:48:17 +02:00
|
|
|
"image": "lobby/checkbox",
|
2023-12-07 16:36:44 +02:00
|
|
|
"callback" : "setTurnTimerAccumulate"
|
2023-11-23 17:20:32 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "buttonUnitTimerAccumulate",
|
|
|
|
"position": {"x": 160, "y": 327},
|
|
|
|
"type": "toggleButton",
|
2023-11-23 19:48:17 +02:00
|
|
|
"image": "lobby/checkbox",
|
2023-12-07 16:36:44 +02:00
|
|
|
"callback" : "setUnitTimerAccumulate"
|
2023-11-23 17:20:32 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
"type" : "labelTitle",
|
|
|
|
"position": {"x": 195, "y": 199},
|
2023-12-07 16:36:44 +02:00
|
|
|
"text" : "vcmi.optionsTab.accumulate"
|
2023-11-23 17:20:32 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type" : "labelTitle",
|
|
|
|
"position": {"x": 195, "y": 331},
|
2023-12-07 16:36:44 +02:00
|
|
|
"text" : "vcmi.optionsTab.accumulate"
|
2023-11-23 17:20:32 +02:00
|
|
|
},
|
2023-11-09 23:18:03 +02:00
|
|
|
|
2023-11-09 20:37:41 +02:00
|
|
|
{
|
|
|
|
"type" : "verticalLayout66",
|
|
|
|
"customType" : "timeInputBackground",
|
|
|
|
"position": {"x": 294, "y": 129},
|
|
|
|
"items":
|
|
|
|
[
|
|
|
|
{},
|
|
|
|
{},
|
|
|
|
{},
|
|
|
|
{}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
2023-11-09 16:41:00 +02:00
|
|
|
{
|
|
|
|
"type" : "verticalLayout66",
|
|
|
|
"customType" : "timeInput",
|
|
|
|
"position": {"x": 294, "y": 129},
|
|
|
|
"items":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"name": "chessFieldBase",
|
|
|
|
"callback": "parseAndSetTimer_base",
|
|
|
|
"help": "vcmi.optionsTab.chessFieldBase.help"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "chessFieldTurn",
|
|
|
|
"callback": "parseAndSetTimer_turn",
|
2023-12-11 17:54:00 +02:00
|
|
|
"help": "vcmi.optionsTab.chessFieldTurnAccumulate.help"
|
2023-11-09 16:41:00 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "chessFieldBattle",
|
|
|
|
"callback": "parseAndSetTimer_battle",
|
|
|
|
"help": "vcmi.optionsTab.chessFieldBattle.help"
|
|
|
|
},
|
|
|
|
{
|
2023-12-07 16:36:44 +02:00
|
|
|
"name": "chessFieldUnit",
|
|
|
|
"callback": "parseAndSetTimer_unit",
|
2023-12-11 17:54:00 +02:00
|
|
|
"help": "vcmi.optionsTab.chessFieldUnitAccumulate.help"
|
2023-11-09 20:37:41 +02:00
|
|
|
}
|
2023-11-09 16:41:00 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
2023-11-09 20:37:41 +02:00
|
|
|
"type": "label",
|
|
|
|
"font": "small",
|
|
|
|
"alignment": "left",
|
|
|
|
"color": "white",
|
|
|
|
"text": "vcmi.optionsTab.simturnsMin.hover",
|
2023-11-09 23:18:03 +02:00
|
|
|
"position": {"x": 70, "y": 420}
|
2023-11-09 20:37:41 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "label",
|
|
|
|
"font": "small",
|
|
|
|
"alignment": "left",
|
|
|
|
"color": "white",
|
|
|
|
"text": "vcmi.optionsTab.simturnsMax.hover",
|
2023-11-10 17:18:49 +02:00
|
|
|
"position": {"x": 70, "y": 470}
|
2023-11-09 20:37:41 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
"name": "simturnsDurationMin",
|
2023-11-09 16:41:00 +02:00
|
|
|
"type": "slider",
|
|
|
|
"orientation": "horizontal",
|
2023-11-09 23:18:03 +02:00
|
|
|
"position": {"x": 178, "y": 420},
|
2023-11-09 20:37:41 +02:00
|
|
|
"size": 200,
|
2023-11-09 23:18:03 +02:00
|
|
|
"callback": "setSimturnDurationMin",
|
2023-11-10 17:18:49 +02:00
|
|
|
"items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 21, 28, 35, 42, 49, 56, 84, 112, 140, 168 ],
|
2023-11-09 16:41:00 +02:00
|
|
|
"selected": 0,
|
|
|
|
"style": "blue",
|
|
|
|
"scrollBounds": {"x": 0, "y": 0, "w": 194, "h": 32},
|
|
|
|
"panningStep": 20
|
|
|
|
},
|
|
|
|
{
|
2023-11-09 20:37:41 +02:00
|
|
|
"name": "simturnsDurationMax",
|
|
|
|
"type": "slider",
|
|
|
|
"orientation": "horizontal",
|
2023-11-10 17:18:49 +02:00
|
|
|
"position": {"x": 178, "y": 470},
|
2023-11-09 20:37:41 +02:00
|
|
|
"size": 200,
|
2023-11-09 23:18:03 +02:00
|
|
|
"callback": "setSimturnDurationMax",
|
2023-11-10 17:18:49 +02:00
|
|
|
"items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 21, 28, 35, 42, 49, 56, 84, 112, 140, 168, 1000000 ],
|
2023-11-09 20:37:41 +02:00
|
|
|
"selected": 0,
|
|
|
|
"style": "blue",
|
|
|
|
"scrollBounds": {"x": 0, "y": 0, "w": 194, "h": 32},
|
|
|
|
"panningStep": 20
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "labelSimturnsDurationValueMin",
|
|
|
|
"type": "label",
|
|
|
|
"font": "small",
|
|
|
|
"alignment": "center",
|
|
|
|
"color": "white",
|
|
|
|
"text": "",
|
2023-11-13 19:49:41 +02:00
|
|
|
"position": {"x": 278, "y": 428}
|
2023-11-09 20:37:41 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "labelSimturnsDurationValueMax",
|
2023-11-09 16:41:00 +02:00
|
|
|
"type": "label",
|
|
|
|
"font": "small",
|
|
|
|
"alignment": "center",
|
|
|
|
"color": "white",
|
|
|
|
"text": "",
|
2023-11-13 19:49:41 +02:00
|
|
|
"position": {"x": 278, "y": 478}
|
2023-11-10 17:18:49 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "vcmi.optionsTab.simturnsMin.help",
|
|
|
|
"type": "multiLineLabel",
|
|
|
|
"font": "tiny",
|
|
|
|
"alignment": "center",
|
|
|
|
"color": "white",
|
|
|
|
"rect": {"x": 70, "y": 430, "w": 300, "h": 40}
|
2023-11-09 23:18:03 +02:00
|
|
|
},
|
|
|
|
{
|
2023-11-10 17:18:49 +02:00
|
|
|
"text": "vcmi.optionsTab.simturnsMax.help",
|
2023-11-09 23:18:03 +02:00
|
|
|
"type": "multiLineLabel",
|
|
|
|
"font": "tiny",
|
|
|
|
"alignment": "center",
|
|
|
|
"color": "white",
|
2023-11-10 17:18:49 +02:00
|
|
|
"rect": {"x": 70, "y": 480, "w": 300, "h": 40}
|
2023-11-09 16:41:00 +02:00
|
|
|
},
|
|
|
|
{
|
2023-11-10 21:21:10 +02:00
|
|
|
"name": "buttonSimturnsAI",
|
2023-12-28 21:55:37 +02:00
|
|
|
"position": {"x": 70, "y": 535},
|
2024-01-14 16:02:57 +02:00
|
|
|
"help" : "vcmi.optionsTab.simturnsAI",
|
2023-11-09 16:41:00 +02:00
|
|
|
"type": "toggleButton",
|
2023-11-23 19:48:17 +02:00
|
|
|
"image": "lobby/checkbox",
|
|
|
|
"callback" : "setSimturnAI"
|
2023-11-09 16:41:00 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "labelSimturnsAI",
|
|
|
|
"type": "label",
|
|
|
|
"font": "small",
|
|
|
|
"alignment": "left",
|
|
|
|
"color": "yellow",
|
|
|
|
"text": "vcmi.optionsTab.simturnsAI.hover",
|
2023-12-28 21:55:37 +02:00
|
|
|
"position": {"x": 110, "y": 538}
|
2023-11-09 16:41:00 +02:00
|
|
|
}
|
2023-11-23 19:48:17 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
"variables":
|
|
|
|
{
|
|
|
|
"timerPresets" :
|
|
|
|
[
|
|
|
|
[ 0, 0, 0, 0, false, false],
|
|
|
|
[ 0, 60, 0, 0, false, false],
|
|
|
|
[ 0, 120, 0, 0, false, false],
|
|
|
|
[ 0, 300, 0, 0, false, false],
|
|
|
|
[ 0, 600, 0, 0, false, false],
|
|
|
|
[ 0, 1200, 0, 0, false, false],
|
|
|
|
[ 0, 1800, 0, 0, false, false],
|
2023-12-07 16:36:44 +02:00
|
|
|
[ 1200, 600, 120, 0, true, false],
|
|
|
|
[ 960, 480, 90, 0, true, false],
|
2023-11-23 19:48:17 +02:00
|
|
|
[ 480, 240, 60, 0, true, false],
|
2023-12-07 16:36:44 +02:00
|
|
|
[ 240, 120, 30, 0, true, false],
|
2023-11-23 19:48:17 +02:00
|
|
|
[ 120, 60, 15, 0, true, false],
|
|
|
|
[ 60, 60, 0, 0, true, false]
|
|
|
|
],
|
|
|
|
"simturnsPresets" :
|
|
|
|
[
|
|
|
|
[ 0, 0, false],
|
|
|
|
[ 999, 0, false],
|
|
|
|
[ 7, 0, false],
|
|
|
|
[ 14, 0, false],
|
|
|
|
[ 28, 0, false],
|
|
|
|
[ 7, 7, false],
|
|
|
|
[ 14, 14, false],
|
|
|
|
[ 28, 28, false]
|
|
|
|
]
|
|
|
|
}
|
2023-11-09 16:41:00 +02:00
|
|
|
}
|