2
0

generalOptionsTab.json 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  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" : 349, "w": 365, "h": 3}
  12. },
  13. {
  14. "type" : "labelTitle",
  15. "position": {"x": 10, "y": 55},
  16. "text": "vcmi.systemOptions.videoGroup"
  17. },
  18. {
  19. "type" : "labelTitle",
  20. "position": {"x": 380, "y": 55},
  21. "text": "vcmi.systemOptions.audioGroup"
  22. },
  23. {
  24. "type" : "labelTitle",
  25. "position": {"x": 10, "y": 355},
  26. "text": "vcmi.systemOptions.townsGroup"
  27. },
  28. /////////////////////////////////////// Left section - Video Settings
  29. {
  30. "type" : "verticalLayout",
  31. "customType" : "labelDescription",
  32. "position" : {"x": 45, "y": 85},
  33. "items" : [
  34. {
  35. "name": "resolutionLabel",
  36. "text": "vcmi.systemOptions.resolutionButton.hover",
  37. "created" : "desktop"
  38. },
  39. {
  40. "name": "scalingLabel",
  41. "text": "vcmi.systemOptions.scalingButton.hover"
  42. },
  43. {
  44. "text": "vcmi.systemOptions.fullscreenBorderless.hover",
  45. "created" : "desktop"
  46. },
  47. {
  48. "text": "vcmi.systemOptions.fullscreenExclusive.hover",
  49. "created" : "desktop"
  50. },
  51. {
  52. "text": "vcmi.systemOptions.performanceOverlayButton.hover"
  53. },
  54. {
  55. "text": "vcmi.systemOptions.enableLargeSpellbookButton.hover"
  56. },
  57. {
  58. "text": "core.genrltxt.577"
  59. },
  60. {
  61. "name": "longTouchLabel",
  62. "text": "vcmi.systemOptions.longTouchButton.hover",
  63. "created" : "touchscreen"
  64. },
  65. {
  66. "text": "vcmi.systemOptions.hapticFeedbackButton.hover",
  67. "created" : "mobile"
  68. },
  69. {
  70. "text": "vcmi.systemOptions.enableOverlayButton.hover"
  71. },
  72. {
  73. "text": "vcmi.systemOptions.enableUiEnhancementsButton.hover"
  74. }
  75. ]
  76. },
  77. {
  78. "type" : "verticalLayout",
  79. "customType" : "checkboxFake",
  80. "position" : {"x": 10, "y": 83},
  81. "items" : [
  82. {
  83. "created" : "desktop"
  84. },
  85. {},
  86. {
  87. "created" : "desktop"
  88. },
  89. {
  90. "created" : "desktop"
  91. },
  92. {},
  93. {},
  94. {
  95. "name": "spellbookAnimationCheckboxPlaceholder"
  96. },
  97. {
  98. "created" : "touchscreen"
  99. },
  100. {
  101. "created" : "mobile"
  102. },
  103. {},
  104. {}
  105. ]
  106. },
  107. {
  108. "type" : "verticalLayout",
  109. "customType" : "checkbox",
  110. "position" : {"x": 10, "y": 83},
  111. "items" : [
  112. {
  113. "name": "resolutionButton",
  114. "type": "buttonGear",
  115. "help": "vcmi.systemOptions.resolutionButton",
  116. "callback": "setGameResolution",
  117. "created" : "desktop"
  118. },
  119. {
  120. "name": "scalingButton",
  121. "type": "buttonGear",
  122. "help": "vcmi.systemOptions.scalingButton",
  123. "callback": "setGameScaling"
  124. },
  125. {
  126. "name": "fullscreenBorderlessCheckbox",
  127. "help": "vcmi.systemOptions.fullscreenBorderless",
  128. "callback": "fullscreenBorderlessChanged",
  129. "created" : "desktop"
  130. },
  131. {
  132. "name": "fullscreenExclusiveCheckbox",
  133. "help": "vcmi.systemOptions.fullscreenExclusive",
  134. "callback": "fullscreenExclusiveChanged",
  135. "created" : "desktop"
  136. },
  137. {
  138. "name": "performanceOverlayCheckbox",
  139. "help": "vcmi.systemOptions.performanceOverlayButton",
  140. "callback": "performanceOverlayChanged"
  141. },
  142. {
  143. "name": "enableLargeSpellbookCheckbox",
  144. "help": "vcmi.systemOptions.enableLargeSpellbookButton",
  145. "callback": "enableLargeSpellbookChanged"
  146. },
  147. {
  148. "name": "spellbookAnimationCheckbox",
  149. "help": "core.help.364",
  150. "callback": "spellbookAnimationChanged"
  151. },
  152. {
  153. "name": "longTouchButton",
  154. "type": "buttonGear",
  155. "help": "vcmi.systemOptions.longTouchButton",
  156. "callback": "setLongTouchDuration",
  157. "created" : "touchscreen"
  158. },
  159. {
  160. "name": "hapticFeedbackCheckbox",
  161. "help": "vcmi.systemOptions.hapticFeedbackButton",
  162. "callback": "hapticFeedbackChanged",
  163. "created" : "mobile"
  164. },
  165. {
  166. "name": "enableOverlayCheckbox",
  167. "help": "vcmi.systemOptions.enableOverlayButton",
  168. "callback": "enableOverlayChanged"
  169. },
  170. {
  171. "name": "enableUiEnhancementsCheckbox",
  172. "help": "vcmi.systemOptions.enableUiEnhancementsButton",
  173. "callback": "enableUiEnhancementsChanged"
  174. }
  175. ]
  176. },
  177. /////////////////////////////////////// Right section - Audio Settings
  178. {
  179. "type" : "labelCentered",
  180. "position": {"x": 460, "y": 98},
  181. "text": "core.genrltxt.394" // Music Volume
  182. },
  183. {
  184. "type" : "labelCentered",
  185. "position": {"x": 460, "y": 158},
  186. "text": "core.genrltxt.395" // Effects volume
  187. },
  188. {
  189. "name": "frameMusic",
  190. "type": "picture",
  191. "image": "settingsWindow/frameAudio",
  192. "position": {"x": 380, "y": 80 }
  193. },
  194. {
  195. "name": "musicSlider",
  196. "type": "audioSlider",
  197. "position": {"x": 385, "y": 115},
  198. "callback": "setMusic"
  199. },
  200. {
  201. "name": "musicValueLabel",
  202. "type": "labelCentered",
  203. "position": {"x": 565, "y": 98}
  204. },
  205. {
  206. "name": "frameSound",
  207. "type": "picture",
  208. "image": "settingsWindow/frameAudio",
  209. "position": {"x": 380, "y": 140 }
  210. },
  211. {
  212. "name": "soundVolumeSlider",
  213. "type": "audioSlider",
  214. "position": {"x": 385, "y": 175},
  215. "callback": "setVolume"
  216. },
  217. {
  218. "name": "soundValueLabel",
  219. "type": "labelCentered",
  220. "position": {"x": 565, "y": 158}
  221. },
  222. {
  223. "type" : "verticalLayout",
  224. "customType" : "labelDescription",
  225. "position" : {"x": 415, "y": 202},
  226. "items" : [
  227. {
  228. "text": "vcmi.systemOptions.audioMuteFocus.hover"
  229. },
  230. {
  231. "text": "core.genrltxt.575"
  232. }
  233. ]
  234. },
  235. {
  236. "type" : "verticalLayout",
  237. "customType" : "checkbox",
  238. "position" : {"x": 380, "y": 200},
  239. "items" : [
  240. {
  241. "name": "audioMuteFocusCheckbox",
  242. "help": "vcmi.systemOptions.audioMuteFocus",
  243. "callback": "audioMuteFocusChanged"
  244. },
  245. {
  246. "name": "enableSubtitleCheckbox",
  247. "help": "core.help.363",
  248. "callback": "enableSubtitleChanged"
  249. }
  250. ]
  251. },
  252. /////////////////////////////////////// Bottom section - Towns Settings
  253. {
  254. "type" : "verticalLayout",
  255. "customType" : "labelDescription",
  256. "position": {"x": 45, "y": 385},
  257. "items" : [
  258. {
  259. "text": "vcmi.otherOptions.creatureGrowthAsDwellingLabel.hover",
  260. },
  261. {
  262. "text": "vcmi.otherOptions.availableCreaturesAsDwellingLabel.hover",
  263. }
  264. ]
  265. },
  266. {
  267. "name": "availableCreaturesAsDwellingPicker",
  268. "type": "toggleGroup",
  269. "position": {"x": 10, "y": 383},
  270. "items":
  271. [
  272. {
  273. "index": 0,
  274. "type": "checkbox",
  275. "help": "vcmi.otherOptions.creatureGrowthAsDwellingLabel",
  276. "position": {"x": 0, "y": 0}
  277. },
  278. {
  279. "index": 1,
  280. "type": "checkbox",
  281. "help": "vcmi.otherOptions.availableCreaturesAsDwellingLabel",
  282. "position": {"x": 0, "y": 30}
  283. },
  284. ],
  285. "callback": "availableCreaturesAsDwellingChanged"
  286. },
  287. {
  288. "name": "compactTownCreatureInfoLabel",
  289. "type" : "verticalLayout",
  290. "customType" : "labelDescription",
  291. "position": {"x": 45, "y": 445},
  292. "items" : [
  293. {
  294. "text": "vcmi.otherOptions.compactTownCreatureInfo.hover",
  295. }
  296. ]
  297. },
  298. {
  299. "name": "compactTownCreatureInfoCheckbox",
  300. "type": "checkbox",
  301. "help": "vcmi.otherOptions.compactTownCreatureInfo",
  302. "position": {"x": 10, "y": 443},
  303. "callback": "compactTownCreatureInfoChanged"
  304. }
  305. ]
  306. }