1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-10 09:50:17 +02:00
vcmi/config/widgets/turnOptionsTab.json

344 lines
7.4 KiB
JSON
Raw Normal View History

{
"library" : [
"config/widgets/turnOptionsDropdownLibrary.json",
"config/widgets/commonPrimitives.json",
],
"customTypes" : {
"verticalLayout66" : {
"type" : "layout",
"vertical" : true,
"dynamic" : false,
"distance" : 66
},
"labelTitle" : {
"type": "label",
"font": "small",
"alignment": "left",
"color": "yellow"
},
"labelDescription" : {
"type": "multiLineLabel",
"font": "tiny",
"alignment": "center",
"color": "white",
"rect": {"x": 0, "y": 0, "w": 300, "h": 35},
"adoptHeight": true
},
"timeInput" : {
"type": "textInput",
"alignment": "center",
"text": "00:00",
"rect": {"x": 0, "y": 0, "w": 86, "h": 23},
"offset": {"x": 0, "y": 0}
},
"timeInputBackground" : {
"type": "boxWithBackground",
"rect": {"x": 0, "y": 0, "w": 86, "h": 23}
}
},
"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
},
{
"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}
},
{
"type": "texture",
"image": "DiBoxBck",
"color" : "blue",
"rect": {"x" : 64, "y" : 394, "w": 316, "h": 124}
},
{
"type": "boxWithNoBackground",
"rect": {"x" : 64, "y" : 394, "w": 316, "h": 124}
},
{
"type": "horizontalLine",
"rect": {"x" : 65, "y" : 416, "w": 314, "h": 2}
},
{
"type": "horizontalLine",
"rect": {"x" : 65, "y" : 466, "w": 314, "h": 2}
},
{
"type" : "verticalLayout66",
"customType" : "labelTitle",
"position": {"x": 70, "y": 133},
"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-12-07 16:36:44 +02:00
"text": "vcmi.optionsTab.simturnsTitle"
}
]
},
{
"type" : "verticalLayout66",
"customType" : "labelDescription",
"position": {"x": 70, "y": 155},
"items":
[
{
"text": "vcmi.optionsTab.chessFieldBase.help"
},
{
2023-12-07 16:36:44 +02:00
"name": "chessFieldTurnLabel"
},
{
"text": "vcmi.optionsTab.chessFieldBattle.help"
},
{
2023-12-07 16:36:44 +02:00
"name": "chessFieldUnitLabel"
}
]
},
{
"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"
},
{
"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"
},
{
"type" : "labelTitle",
"position": {"x": 195, "y": 199},
2023-12-07 16:36:44 +02:00
"text" : "vcmi.optionsTab.accumulate"
},
{
"type" : "labelTitle",
"position": {"x": 195, "y": 331},
2023-12-07 16:36:44 +02:00
"text" : "vcmi.optionsTab.accumulate"
},
2023-11-09 23:18:03 +02:00
{
"type" : "verticalLayout66",
"customType" : "timeInputBackground",
"position": {"x": 294, "y": 129},
"items":
[
{},
{},
{},
{}
]
},
{
"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",
"help": "vcmi.optionsTab.chessFieldTurnAccumulate.help"
},
{
"name": "chessFieldBattle",
"callback": "parseAndSetTimer_battle",
"help": "vcmi.optionsTab.chessFieldBattle.help"
},
{
2023-12-07 16:36:44 +02:00
"name": "chessFieldUnit",
"callback": "parseAndSetTimer_unit",
"help": "vcmi.optionsTab.chessFieldUnitAccumulate.help"
}
]
},
{
"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}
},
{
"type": "label",
"font": "small",
"alignment": "left",
"color": "white",
"text": "vcmi.optionsTab.simturnsMax.hover",
"position": {"x": 70, "y": 470}
},
{
"name": "simturnsDurationMin",
"type": "slider",
"orientation": "horizontal",
2023-11-09 23:18:03 +02:00
"position": {"x": 178, "y": 420},
"size": 200,
2023-11-09 23:18:03 +02:00
"callback": "setSimturnDurationMin",
"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 ],
"selected": 0,
"style": "blue",
"scrollBounds": {"x": 0, "y": 0, "w": 194, "h": 32},
"panningStep": 20
},
{
"name": "simturnsDurationMax",
"type": "slider",
"orientation": "horizontal",
"position": {"x": 178, "y": 470},
"size": 200,
2023-11-09 23:18:03 +02:00
"callback": "setSimturnDurationMax",
"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 ],
"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}
},
{
"name": "labelSimturnsDurationValueMax",
"type": "label",
"font": "small",
"alignment": "center",
"color": "white",
"text": "",
2023-11-13 19:49:41 +02:00
"position": {"x": 278, "y": 478}
},
{
"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
},
{
"text": "vcmi.optionsTab.simturnsMax.help",
2023-11-09 23:18:03 +02:00
"type": "multiLineLabel",
"font": "tiny",
"alignment": "center",
"color": "white",
"rect": {"x": 70, "y": 480, "w": 300, "h": 40}
},
{
2023-11-10 21:21:10 +02:00
"name": "buttonSimturnsAI",
2023-12-28 21:55:37 +02:00
"position": {"x": 70, "y": 535},
"help" : "vcmi.optionsTab.simturnsAI",
"type": "toggleButton",
2023-11-23 19:48:17 +02:00
"image": "lobby/checkbox",
"callback" : "setSimturnAI"
},
{
"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-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]
]
}
}