generalOptionsTab.json 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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" : 289, "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": 295},
  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": "core.genrltxt.577"
  54. },
  55. {
  56. "name": "longTouchLabel",
  57. "text": "vcmi.systemOptions.longTouchButton.hover",
  58. "created" : "touchscreen"
  59. }
  60. ]
  61. },
  62. {
  63. "type" : "verticalLayout",
  64. "customType" : "checkbox",
  65. "position" : {"x": 10, "y": 83},
  66. "items" : [
  67. {
  68. "name": "resolutionButton",
  69. "type": "buttonGear",
  70. "help": "vcmi.systemOptions.resolutionButton",
  71. "callback": "setGameResolution",
  72. "created" : "desktop"
  73. },
  74. {
  75. "name": "scalingButton",
  76. "type": "buttonGear",
  77. "help": "vcmi.systemOptions.scalingButton",
  78. "callback": "setGameScaling",
  79. },
  80. {
  81. "name": "fullscreenBorderlessCheckbox",
  82. "help": "vcmi.systemOptions.fullscreenBorderless",
  83. "callback": "fullscreenBorderlessChanged",
  84. "created" : "desktop"
  85. },
  86. {
  87. "name": "fullscreenExclusiveCheckbox",
  88. "help": "vcmi.systemOptions.fullscreenExclusive",
  89. "callback": "fullscreenExclusiveChanged",
  90. "created" : "desktop"
  91. },
  92. {
  93. "name": "framerateCheckbox",
  94. "help": "vcmi.systemOptions.framerateButton",
  95. "callback": "framerateChanged"
  96. },
  97. {
  98. "name": "spellbookAnimationCheckbox",
  99. "help": "core.help.364",
  100. "callback": "spellbookAnimationChanged"
  101. },
  102. {
  103. "name": "longTouchButton",
  104. "type": "buttonGear",
  105. "help": "vcmi.systemOptions.longTouchButton",
  106. "callback": "setLongTouchDuration",
  107. "created" : "touchscreen"
  108. }
  109. ]
  110. },
  111. /////////////////////////////////////// Right section - Audio Settings
  112. {
  113. "type" : "labelCentered",
  114. "position": {"x": 460, "y": 98},
  115. "text": "core.genrltxt.394" // Music Volume
  116. },
  117. {
  118. "type" : "labelCentered",
  119. "position": {"x": 460, "y": 158},
  120. "text": "core.genrltxt.395" // Effects volume
  121. },
  122. {
  123. "name": "frameMusic",
  124. "type": "picture",
  125. "image": "settingsWindow/frameAudio",
  126. "position": {"x": 380, "y": 80 }
  127. },
  128. {
  129. "name": "musicSlider",
  130. "type": "audioSlider",
  131. "position": {"x": 385, "y": 115},
  132. "callback": "setMusic"
  133. },
  134. {
  135. "name": "musicValueLabel",
  136. "type": "labelCentered",
  137. "position": {"x": 565, "y": 98}
  138. },
  139. {
  140. "name": "frameSound",
  141. "type": "picture",
  142. "image": "settingsWindow/frameAudio",
  143. "position": {"x": 380, "y": 140 }
  144. },
  145. {
  146. "name": "soundVolumeSlider",
  147. "type": "audioSlider",
  148. "position": {"x": 385, "y": 175},
  149. "callback": "setVolume"
  150. },
  151. {
  152. "name": "soundValueLabel",
  153. "type": "labelCentered",
  154. "position": {"x": 565, "y": 158}
  155. },
  156. /////////////////////////////////////// Bottom section - Towns Settings
  157. {
  158. "type" : "verticalLayout",
  159. "customType" : "labelDescription",
  160. "position": {"x": 45, "y": 325},
  161. "items" : [
  162. {
  163. "text": "vcmi.otherOptions.creatureGrowthAsDwellingLabel.hover",
  164. },
  165. {
  166. "text": "vcmi.otherOptions.availableCreaturesAsDwellingLabel.hover",
  167. }
  168. ]
  169. },
  170. {
  171. "name": "availableCreaturesAsDwellingPicker",
  172. "type": "toggleGroup",
  173. "position": {"x": 10, "y": 323},
  174. "items":
  175. [
  176. {
  177. "index": 0,
  178. "type": "checkbox",
  179. "help": "vcmi.otherOptions.creatureGrowthAsDwellingLabel",
  180. "position": {"x": 0, "y": 0}
  181. },
  182. {
  183. "index": 1,
  184. "type": "checkbox",
  185. "help": "vcmi.otherOptions.availableCreaturesAsDwellingLabel",
  186. "position": {"x": 0, "y": 30}
  187. },
  188. ],
  189. "callback": "availableCreaturesAsDwellingChanged"
  190. },
  191. {
  192. "name": "compactTownCreatureInfoLabel",
  193. "type" : "verticalLayout",
  194. "customType" : "labelDescription",
  195. "position": {"x": 45, "y": 385},
  196. "items" : [
  197. {
  198. "text": "vcmi.otherOptions.compactTownCreatureInfo.hover",
  199. }
  200. ]
  201. },
  202. {
  203. "name": "compactTownCreatureInfoCheckbox",
  204. "type": "checkbox",
  205. "help": "vcmi.otherOptions.compactTownCreatureInfo",
  206. "position": {"x": 10, "y": 383},
  207. "callback": "compactTownCreatureInfoChanged"
  208. }
  209. ]
  210. }