adventureOptionsTab.json 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468
  1. {
  2. "library" : [
  3. "config/widgets/settings/library.json",
  4. "config/widgets/commonPrimitives.json",
  5. ],
  6. "items":
  7. [
  8. {
  9. "name": "lineLabelsEnd",
  10. "type": "horizontalLine",
  11. "rect": { "x" : 5, "y" : 229, "w": 365, "h": 3}
  12. },
  13. /////////////////////////////////////// Left section - Hero Speed and Map Scrolling
  14. {
  15. "name": "frameHeroMovement",
  16. "type": "picture",
  17. "image": "settingsWindow/frameMovement",
  18. "position": {"x": 6, "y": 50 }
  19. },
  20. {
  21. "name": "frameEnemyMovement",
  22. "type": "picture",
  23. "image": "settingsWindow/frameMovement",
  24. "position": {"x": 6, "y": 110 }
  25. },
  26. {
  27. "name": "frameMapMovement",
  28. "type": "picture",
  29. "image": "settingsWindow/frameMovement",
  30. "position": {"x": 6, "y": 170 }
  31. },
  32. {
  33. "type" : "verticalLayout60",
  34. "customType" : "labelCentered",
  35. "position": {"x": 150, "y": 62},
  36. "items":
  37. [
  38. {
  39. "text": "core.genrltxt.569" // Hero Speed
  40. },
  41. {
  42. "text": "core.genrltxt.570" // Enemy Speed
  43. },
  44. {
  45. "text": "core.genrltxt.571" // Scrolling Speed
  46. }
  47. ]
  48. },
  49. {
  50. "type" : "verticalLayout60",
  51. "customType" : "labelCentered",
  52. "position": {"x": 324, "y": 90},
  53. "items":
  54. [
  55. {
  56. "name": "heroSpeedValueLabel"
  57. },
  58. {
  59. "name": "enemySpeedValueLabel"
  60. },
  61. {
  62. "name": "mapScrollingValueLabel"
  63. }
  64. ]
  65. },
  66. {
  67. "name": "heroMovementSpeedPicker",
  68. "type": "toggleGroup",
  69. "position": {"x": 10, "y": 73},
  70. "items":
  71. [
  72. {
  73. "index": 200,
  74. "type": "toggleButton",
  75. "image": "sysopb1",
  76. "help": "core.help.349",
  77. "position": {"x": 0, "y": 0}
  78. },
  79. {
  80. "index": 150,
  81. "type": "toggleButton",
  82. "image": "sysopb2",
  83. "help": "core.help.350",
  84. "position": {"x": 48, "y": 0}
  85. },
  86. {
  87. "index": 100,
  88. "type": "toggleButton",
  89. "image": "sysopb5",
  90. "help": "core.help.350",
  91. "position": {"x": 96, "y": 0}
  92. },
  93. {
  94. "index": 50,
  95. "type": "toggleButton",
  96. "image": "sysopb6",
  97. "help": "core.help.351",
  98. "position": {"x": 144, "y": 0}
  99. },
  100. {
  101. "index": 25,
  102. "type": "toggleButton",
  103. "image": "sysopb3",
  104. "help": "core.help.351",
  105. "position": {"x": 192, "y": 0}
  106. },
  107. {
  108. "index": 0,
  109. "type": "toggleButton",
  110. "image": "sysopb4",
  111. "help": "core.help.352",
  112. "position": {"x": 240, "y": 0}
  113. }
  114. ],
  115. "callback": "playerHeroSpeedChanged"
  116. },
  117. {
  118. "name": "enemyMovementSpeedPicker",
  119. "type": "toggleGroup",
  120. "position": {"x": 10, "y": 133},
  121. "items":
  122. [
  123. {
  124. "index": 150,
  125. "type": "toggleButton",
  126. "image": "sysopb1",
  127. "help": "core.help.353",
  128. "position": {"x": 0, "y": 0}
  129. },
  130. {
  131. "index": 100,
  132. "type": "toggleButton",
  133. "image": "sysopb5",
  134. "help": "core.help.353",
  135. "position": {"x": 48, "y": 0}
  136. },
  137. {
  138. "index": 50,
  139. "type": "toggleButton",
  140. "image": "sysopb6",
  141. "help": "core.help.354",
  142. "position": {"x": 96, "y": 0}
  143. },
  144. {
  145. "index": 25,
  146. "type": "toggleButton",
  147. "image": "sysopb3",
  148. "help": "core.help.354",
  149. "position": {"x": 144, "y": 0}
  150. },
  151. {
  152. "index": 0,
  153. "type": "toggleButton",
  154. "image": "sysopb7",
  155. "help": "core.help.355",
  156. "position": {"x": 192, "y": 0}
  157. },
  158. {
  159. "index": -1,
  160. "type": "toggleButton",
  161. "image": "sysopb8",
  162. "help": "core.help.356",
  163. "position": {"x": 240, "y": 0}
  164. }
  165. ],
  166. "callback": "enemyHeroSpeedChanged"
  167. },
  168. {
  169. "name": "mapScrollSpeedPicker",
  170. "type": "toggleGroup",
  171. "position": {"x": 10, "y": 193},
  172. "items":
  173. [
  174. {
  175. "index": 200,
  176. "type": "toggleButton",
  177. "image": "settingsWindow/button46",
  178. "help": "vcmi.adventureOptions.mapScrollSpeed1",
  179. "position": {"x": 0, "y": 0},
  180. "items":
  181. [
  182. {
  183. "name": "mapScrollSpeed1",
  184. "type": "picture",
  185. "image": "settingsWindow/scrollSpeed1",
  186. "position": {"x": 0, "y": 0 }
  187. }
  188. ]
  189. },
  190. {
  191. "index": 400,
  192. "type": "toggleButton",
  193. "image": "settingsWindow/button46",
  194. "help": "core.help.357",
  195. "position": {"x": 48, "y": 0},
  196. "items":
  197. [
  198. {
  199. "name": "mapScrollSpeed2",
  200. "type": "picture",
  201. "image": "settingsWindow/scrollSpeed2",
  202. "position": {"x": 0, "y": 0 }
  203. }
  204. ]
  205. },
  206. {
  207. "index": 800,
  208. "type": "toggleButton",
  209. "image": "settingsWindow/button46",
  210. "help": "core.help.358",
  211. "position": {"x": 96, "y": 0},
  212. "items":
  213. [
  214. {
  215. "name": "mapScrollSpeed3",
  216. "type": "picture",
  217. "image": "settingsWindow/scrollSpeed3",
  218. "position": {"x": 0, "y": 0 }
  219. }
  220. ]
  221. },
  222. {
  223. "index": 1200,
  224. "type": "toggleButton",
  225. "image": "settingsWindow/button46",
  226. "help": "core.help.359",
  227. "position": {"x": 144, "y": 0},
  228. "items":
  229. [
  230. {
  231. "name": "mapScrollSpeed4",
  232. "type": "picture",
  233. "image": "settingsWindow/scrollSpeed4",
  234. "position": {"x": 0, "y": 0 }
  235. }
  236. ]
  237. },
  238. {
  239. "index": 2400, // TODO
  240. "type": "toggleButton",
  241. "image": "settingsWindow/button46",
  242. "help": "vcmi.adventureOptions.mapScrollSpeed5",
  243. "position": {"x": 192, "y": 0},
  244. "items":
  245. [
  246. {
  247. "name": "mapScrollSpeed5",
  248. "type": "picture",
  249. "image": "settingsWindow/scrollSpeed5",
  250. "position": {"x": 0, "y": 0 }
  251. }
  252. ]
  253. },
  254. {
  255. "index": 4800, // TODO
  256. "type": "toggleButton",
  257. "image": "settingsWindow/button46",
  258. "help": "vcmi.adventureOptions.mapScrollSpeed6",
  259. "position": {"x": 240, "y": 0},
  260. "items":
  261. [
  262. {
  263. "name": "mapScrollSpeed6",
  264. "type": "picture",
  265. "image": "settingsWindow/scrollSpeed6",
  266. "position": {"x": 0, "y": 0 }
  267. }
  268. ]
  269. }
  270. ],
  271. "callback": "mapScrollSpeedChanged"
  272. },
  273. /////////////////////////////////////// Right section - Original H3 options + some custom
  274. {
  275. "type" : "verticalLayout",
  276. "customType" : "labelDescription",
  277. "position": {"x": 415, "y": 55},
  278. "items":
  279. [
  280. {
  281. "text": "core.genrltxt.572" // show move path
  282. },
  283. {
  284. "text": "core.genrltxt.573" // show hero reminder
  285. },
  286. {
  287. "text": "core.genrltxt.574" // quick combat
  288. },
  289. {
  290. "text": "vcmi.adventureOptions.showGrid.hover"
  291. },
  292. {
  293. "text": "vcmi.adventureOptions.hideBackground.hover"
  294. },
  295. {
  296. "text": "vcmi.adventureOptions.minimapShowHeroes.hover"
  297. },
  298. {
  299. "text": "vcmi.keyBindings.button.hover"
  300. }
  301. ]
  302. },
  303. {
  304. "type" : "verticalLayout",
  305. "customType" : "checkbox",
  306. "position": {"x": 380, "y": 53},
  307. "items":
  308. [
  309. {
  310. "name": "showMovePathCheckbox",
  311. "help": "core.help.360",
  312. "callback": "showMovePathChanged"
  313. },
  314. {
  315. "name": "heroReminderCheckbox",
  316. "help": "core.help.361",
  317. "callback": "heroReminderChanged"
  318. },
  319. {
  320. "name": "quickCombatCheckbox",
  321. "help": "core.help.362",
  322. "callback": "quickCombatChanged"
  323. },
  324. {
  325. "name": "showGridCheckbox",
  326. "help": "vcmi.adventureOptions.showGrid",
  327. "callback": "showGridChanged"
  328. },
  329. {
  330. "name": "hideBackgroundCheckbox",
  331. "help": "vcmi.adventureOptions.hideBackground",
  332. "callback": "hideBackgroundChanged"
  333. },
  334. {
  335. "name": "minimapShowHeroesCheckbox",
  336. "help": "vcmi.adventureOptions.minimapShowHeroes",
  337. "callback": "minimapShowHeroesChanged"
  338. },
  339. {
  340. "name": "shortcutButton",
  341. "type": "buttonGear",
  342. "help": "vcmi.keyBindings.button",
  343. "callback": "openShortcutMenu"
  344. }
  345. ]
  346. },
  347. /////////////////////////////////////// Bottom section - VCMI Options
  348. {
  349. "type": "verticalLayout",
  350. "customType": "labelDescription",
  351. "position": {"x": 45, "y": 235},
  352. "items":
  353. [
  354. {
  355. "text": "vcmi.adventureOptions.numericQuantities.hover"
  356. },
  357. {
  358. "text": "vcmi.adventureOptions.forceMovementInfo.hover"
  359. },
  360. {
  361. "text": "vcmi.adventureOptions.skipAdventureMapAnimations.hover"
  362. },
  363. {
  364. "text": "vcmi.adventureOptions.infoBarPick.hover"
  365. },
  366. {
  367. "text": "vcmi.adventureOptions.borderScroll.hover"
  368. },
  369. {
  370. "text": "vcmi.adventureOptions.infoBarCreatureManagement.hover"
  371. },
  372. {
  373. "text": "vcmi.adventureOptions.leftButtonDrag.hover",
  374. "created" : "keyboardMouse"
  375. },
  376. {
  377. "text": "vcmi.adventureOptions.smoothDragging.hover"
  378. }
  379. ]
  380. },
  381. {
  382. "type": "verticalLayout",
  383. "customType": "labelDescription",
  384. "position": {"x": 225, "y": 415},
  385. "items":
  386. [
  387. {
  388. "text": "vcmi.adventureOptions.rightButtonDrag.hover",
  389. "created" : "keyboardMouse"
  390. }
  391. ]
  392. },
  393. {
  394. "type": "verticalLayout",
  395. "customType": "checkbox",
  396. "position": {"x": 10, "y": 233},
  397. "items":
  398. [
  399. {
  400. "name": "numericQuantitiesCheckbox",
  401. "help": "vcmi.adventureOptions.numericQuantities",
  402. "callback": "numericQuantitiesChanged"
  403. },
  404. {
  405. "name": "forceMovementInfoCheckbox",
  406. "help": "vcmi.adventureOptions.forceMovementInfo",
  407. "callback": "forceMovementInfoChanged"
  408. },
  409. {
  410. "name": "skipAdventureMapAnimationsCheckbox",
  411. "help": "vcmi.adventureOptions.skipAdventureMapAnimations",
  412. "callback": "skipAdventureMapAnimationsChanged"
  413. },
  414. {
  415. "name": "infoBarPickCheckbox",
  416. "help": "vcmi.adventureOptions.infoBarPick",
  417. "callback": "infoBarPickChanged"
  418. },
  419. {
  420. "name": "borderScrollCheckbox",
  421. "help": "vcmi.adventureOptions.borderScroll",
  422. "callback": "borderScrollChanged"
  423. },
  424. {
  425. "name": "infoBarCreatureManagementCheckbox",
  426. "help": "vcmi.adventureOptions.infoBarCreatureManagement",
  427. "callback": "infoBarCreatureManagementChanged"
  428. },
  429. {
  430. "name": "leftButtonDragCheckbox",
  431. "help": "vcmi.adventureOptions.leftButtonDrag",
  432. "callback": "leftButtonDragChanged",
  433. "created" : "keyboardMouse"
  434. },
  435. {
  436. "name": "smoothDraggingCheckbox",
  437. "help": "vcmi.adventureOptions.smoothDragging",
  438. "callback": "smoothDraggingChanged"
  439. }
  440. ]
  441. },
  442. {
  443. "type": "verticalLayout",
  444. "customType": "checkbox",
  445. "position": {"x": 190, "y": 413},
  446. "items":
  447. [
  448. {
  449. "name": "rightButtonDragCheckbox",
  450. "help": "vcmi.adventureOptions.rightButtonDrag",
  451. "callback": "rightButtonDragChanged",
  452. "created" : "keyboardMouse"
  453. }
  454. ]
  455. }
  456. ]
  457. }