battleOptionsTab.json 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. {
  2. "library" : [
  3. "config/widgets/settings/library.json",
  4. "config/widgets/commonPrimitives.json",
  5. ],
  6. "items":
  7. [
  8. {
  9. "name": "lineAnimationSpeed",
  10. "type": "horizontalLine",
  11. "rect": { "x" : 5, "y" : 349, "w": 365, "h": 3}
  12. },
  13. {
  14. "type" : "labelTitle",
  15. "text": "core.genrltxt.396", // Auto-combat options
  16. "position": {"x": 380, "y": 55}
  17. },
  18. /////////////////////////////////////// Right section - Auto-combat settings (NOT IMPLEMENTED)
  19. {
  20. "name": "autoCombatLabels",
  21. "type" : "verticalLayout",
  22. "customType" : "labelDescription",
  23. "position": {"x": 415, "y": 85},
  24. "items":
  25. [
  26. {
  27. "text": "core.genrltxt.398" // Creatures
  28. },
  29. {
  30. "text": "core.genrltxt.399" // Spells
  31. },
  32. {
  33. "text": "core.genrltxt.400" // Catapult
  34. },
  35. {
  36. "text": "core.genrltxt.151" // Ballista
  37. },
  38. {
  39. "text": "core.genrltxt.401" // First Aid Tent
  40. },
  41. {
  42. "text": "vcmi.battleOptions.endWithAutocombat.hover"
  43. }
  44. ]
  45. },
  46. {
  47. "name": "autoCombatFakeCheckboxes",
  48. "type" : "verticalLayout",
  49. "customType" : "checkboxFake",
  50. "position": {"x": 380, "y": 83},
  51. "items":
  52. [
  53. {}
  54. ]
  55. },
  56. {
  57. "type" : "verticalLayout",
  58. "customType" : "checkbox",
  59. "position": {"x": 380, "y": 113},
  60. "items":
  61. [
  62. {
  63. "name": "enableAutocombatSpellsCheckbox",
  64. "callback": "enableAutocombatSpellsChanged"
  65. }
  66. ]
  67. },
  68. {
  69. "name": "autoCombatFakeCheckboxes2",
  70. "type" : "verticalLayout",
  71. "customType" : "checkboxFake",
  72. "position": {"x": 380, "y": 143},
  73. "items":
  74. [
  75. {},
  76. {},
  77. {}
  78. ]
  79. },
  80. {
  81. "type" : "verticalLayout",
  82. "customType" : "checkbox",
  83. "position": {"x": 380, "y": 233},
  84. "items":
  85. [
  86. {
  87. "help": "vcmi.battleOptions.endWithAutocombat",
  88. "name": "endWithAutocombatCheckbox",
  89. "callback": "endWithAutocombatChanged"
  90. }
  91. ]
  92. },
  93. /////////////////////////////////////// Left section - checkboxes
  94. {
  95. "name": "generalOptionsLabels",
  96. "type" : "verticalLayout",
  97. "customType" : "labelDescription",
  98. "position": {"x": 45, "y": 55},
  99. "items":
  100. [
  101. {
  102. "text": "core.genrltxt.404",
  103. },
  104. {
  105. "text": "core.genrltxt.405",
  106. },
  107. {
  108. "text": "vcmi.battleOptions.movementHighlightOnHover.hover",
  109. },
  110. {
  111. "text": "vcmi.battleOptions.rangeLimitHighlightOnHover.hover",
  112. },
  113. {
  114. "text": "vcmi.battleOptions.showHealthBar.hover",
  115. },
  116. {
  117. "text": "vcmi.battleOptions.showStickyHeroInfoWindows.hover",
  118. },
  119. {
  120. "text": "vcmi.battleOptions.showQuickSpell.hover",
  121. },
  122. {
  123. "text": "core.genrltxt.406",
  124. },
  125. {
  126. "text": "vcmi.battleOptions.skipBattleIntroMusic.hover",
  127. }
  128. ]
  129. },
  130. {
  131. "type" : "verticalLayout",
  132. "customType" : "checkbox",
  133. "position": {"x": 10, "y": 53},
  134. "items":
  135. [
  136. {
  137. "name": "viewGridCheckbox",
  138. "help": "core.help.427",
  139. "callback": "viewGridChanged"
  140. },
  141. {
  142. "name": "movementShadowCheckbox",
  143. "help": "core.help.428",
  144. "callback": "movementShadowChanged"
  145. },
  146. {
  147. "name": "movementHighlightOnHoverCheckbox",
  148. "help": "vcmi.battleOptions.movementHighlightOnHover",
  149. "callback": "movementHighlightOnHoverChanged"
  150. },
  151. {
  152. "name": "rangeLimitHighlightOnHoverCheckbox",
  153. "help": "vcmi.battleOptions.rangeLimitHighlightOnHover",
  154. "callback": "rangeLimitHighlightOnHoverChanged"
  155. },
  156. {
  157. "name": "showHealthBarCheckbox",
  158. "help": "vcmi.battleOptions.showHealthBar",
  159. "callback": "showHealthBarChanged"
  160. },
  161. {
  162. "name": "showStickyHeroInfoWindowsCheckbox",
  163. "help": "vcmi.battleOptions.showStickyHeroInfoWindows",
  164. "callback": "showStickyHeroWindowsChanged"
  165. },
  166. {
  167. "name": "showQuickSpellCheckbox",
  168. "help": "vcmi.battleOptions.showQuickSpell",
  169. "callback": "showQuickSpellChanged"
  170. },
  171. {
  172. "name": "mouseShadowCheckbox",
  173. "help": "core.help.429",
  174. "callback": "mouseShadowChanged"
  175. },
  176. {
  177. "name": "skipBattleIntroMusicCheckbox",
  178. "help": "vcmi.battleOptions.skipBattleIntroMusic",
  179. "callback": "skipBattleIntroMusicChanged"
  180. }
  181. ]
  182. },
  183. /////////////////////////////////////// Bottom section - Animation Speed and Turn Order
  184. {
  185. "name": "frameAnimationSpeed",
  186. "type": "picture",
  187. "image": "settingsWindow/frameMovement",
  188. "position": {"x": 6, "y": 350 }
  189. },
  190. {
  191. "name": "animationSpeedLabel",
  192. "type": "labelCentered",
  193. "text": "core.genrltxt.393",
  194. "position": {"x": 150, "y": 362}
  195. },
  196. {
  197. "name": "animationSpeedValueLabel",
  198. "type": "labelCentered",
  199. "position": {"x": 324, "y": 390}
  200. },
  201. {
  202. "name": "animationSpeedPicker",
  203. "type": "toggleGroup",
  204. "position": {"x": 10, "y": 373},
  205. "items":
  206. [
  207. {
  208. "index": 1,
  209. "type": "toggleButton",
  210. "image": "settingsWindow/button46",
  211. "help": "vcmi.battleOptions.animationsSpeed1",
  212. "position": {"x": 0, "y": 0},
  213. "items":
  214. [
  215. {
  216. "name": "battleScrollSpeed1",
  217. "type": "picture",
  218. "image": "settingsWindow/scrollSpeed1",
  219. "position": {"x": 0, "y": 0 }
  220. }
  221. ]
  222. },
  223. {
  224. "index": 2,
  225. "type": "toggleButton",
  226. "image": "settingsWindow/button46",
  227. "help": "core.help.422",
  228. "position": {"x": 48, "y": 0},
  229. "items":
  230. [
  231. {
  232. "name": "battleScrollSpeed2",
  233. "type": "picture",
  234. "image": "settingsWindow/scrollSpeed2",
  235. "position": {"x": 0, "y": 0 }
  236. }
  237. ]
  238. },
  239. {
  240. "index": 3,
  241. "type": "toggleButton",
  242. "image": "settingsWindow/button46",
  243. "help": "core.help.423",
  244. "position": {"x":96, "y": 0},
  245. "items":
  246. [
  247. {
  248. "name": "battleScrollSpeed3",
  249. "type": "picture",
  250. "image": "settingsWindow/scrollSpeed3",
  251. "position": {"x": 0, "y": 0 }
  252. }
  253. ]
  254. },
  255. {
  256. "index": 6,
  257. "type": "toggleButton",
  258. "image": "settingsWindow/button46",
  259. "help": "core.help.424",
  260. "position": {"x": 144, "y": 0},
  261. "items":
  262. [
  263. {
  264. "name": "battleScrollSpeed4",
  265. "type": "picture",
  266. "image": "settingsWindow/scrollSpeed4",
  267. "position": {"x": 0, "y": 0 }
  268. }
  269. ]
  270. },
  271. {
  272. "index": 9,
  273. "type": "toggleButton",
  274. "image": "settingsWindow/button46",
  275. "help": "vcmi.battleOptions.animationsSpeed5",
  276. "position": {"x": 192, "y": 0},
  277. "items":
  278. [
  279. {
  280. "name": "battleScrollSpeed5",
  281. "type": "picture",
  282. "image": "settingsWindow/scrollSpeed5",
  283. "position": {"x": 0, "y": 0 }
  284. }
  285. ]
  286. },
  287. {
  288. "index": 18,
  289. "type": "toggleButton",
  290. "image": "settingsWindow/button46",
  291. "help": "vcmi.battleOptions.animationsSpeed6",
  292. "position": {"x": 240, "y": 0},
  293. "items":
  294. [
  295. {
  296. "name": "battleScrollSpeed6",
  297. "type": "picture",
  298. "image": "settingsWindow/scrollSpeed6",
  299. "position": {"x": 0, "y": 0 }
  300. }
  301. ]
  302. }
  303. ],
  304. "callback": "animationSpeedChanged"
  305. },
  306. {
  307. "name": "frameQueueSize",
  308. "type": "picture",
  309. "image": "settingsWindow/frameStackQueue",
  310. "position": {"x": 6, "y": 410 }
  311. },
  312. {
  313. "name": "queueSizeLabel",
  314. "type": "label",
  315. "font": "medium",
  316. "alignment": "center",
  317. "color": "yellow",
  318. "text": "vcmi.battleOptions.queueSizeLabel.hover",
  319. "position": {"x": 170, "y": 422}
  320. },
  321. {
  322. "name": "queueSizePicker",
  323. "type": "toggleGroup",
  324. "position": {"x": 10, "y": 434},
  325. "items":
  326. [
  327. {
  328. "index": -1, //off
  329. "type": "toggleButton",
  330. "image": "settingsWindow/button80",
  331. "help": "vcmi.battleOptions.queueSizeAutoButton",
  332. "position": {"x": 0, "y": 0},
  333. "items":
  334. [
  335. {
  336. "name": "queueSizeNoneText",
  337. "type": "label",
  338. "font": "medium",
  339. "alignment": "center",
  340. "color": "yellow",
  341. "text": "vcmi.battleOptions.queueSizeNoneButton.hover"
  342. }
  343. ]
  344. },
  345. {
  346. "index": 0, //auto
  347. "type": "toggleButton",
  348. "image": "settingsWindow/button80",
  349. "help": "vcmi.battleOptions.queueSizeAutoButton",
  350. "position": {"x": 85, "y": 0},
  351. "items":
  352. [
  353. {
  354. "name": "queueSizeAutoText",
  355. "type": "label",
  356. "font": "medium",
  357. "alignment": "center",
  358. "color": "yellow",
  359. "text": "vcmi.battleOptions.queueSizeAutoButton.hover"
  360. }
  361. ]
  362. },
  363. {
  364. "index": 1, //small
  365. "type": "toggleButton",
  366. "image": "settingsWindow/button80",
  367. "help": "vcmi.battleOptions.queueSizeSmallButton",
  368. "position": {"x": 170, "y": 0},
  369. "items":
  370. [
  371. {
  372. "name": "queueSizeSmallText",
  373. "type": "label",
  374. "font": "medium",
  375. "alignment": "center",
  376. "color": "yellow",
  377. "text": "vcmi.battleOptions.queueSizeSmallButton.hover"
  378. }
  379. ]
  380. },
  381. {
  382. "index": 2, //large
  383. "type": "toggleButton",
  384. "image": "settingsWindow/button80",
  385. "help": "vcmi.battleOptions.queueSizeBigButton",
  386. "position": {"x": 255, "y": 0},
  387. "items":
  388. [
  389. {
  390. "name": "queueSizeBigText",
  391. "type": "label",
  392. "font": "medium",
  393. "alignment": "center",
  394. "color": "yellow",
  395. "text": "vcmi.battleOptions.queueSizeBigButton.hover"
  396. }
  397. ]
  398. }
  399. ],
  400. "callback": "queueSizeChanged"
  401. }
  402. ]
  403. }