generalOptionsTab.json 6.7 KB

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