settingsMainContainer.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. {
  2. "library" : [
  3. "config/widgets/commonPrimitives.json"
  4. ],
  5. "items":
  6. [
  7. {
  8. "name": "background",
  9. "type": "texture",
  10. "image": "DiBoxBck",
  11. "rect": {"w": 600, "h": 480}
  12. },
  13. {
  14. "name": "lineTabs",
  15. "type": "horizontalLine",
  16. "rect": { "x" : 10, "y" : 45, "w": 580, "h": 3}
  17. },
  18. {
  19. "name": "lineColumns",
  20. "type": "verticalLine",
  21. "rect": { "x" : 370, "y" : 50, "w": 3, "h": 420}
  22. },
  23. {
  24. "name": "settingsTabs",
  25. "type": "toggleGroup",
  26. "position": {
  27. "x": 0,
  28. "y": 0
  29. },
  30. "items":
  31. [
  32. {
  33. "index": 0,
  34. "type": "toggleButton",
  35. "position": {"x": 10, "y": 5},
  36. "image": "settingsWindow/button190",
  37. "help": "vcmi.settingsMainWindow.generalTab",
  38. "items":
  39. [
  40. {
  41. "name": "generalTabButtonTitle",
  42. "type": "label",
  43. "font": "big",
  44. "alignment": "center",
  45. "color": "yellow",
  46. "text": "vcmi.settingsMainWindow.generalTab.hover"
  47. }
  48. ]
  49. },
  50. {
  51. "index": 1,
  52. "type": "toggleButton",
  53. "position": {"x": 205, "y": 5},
  54. "image": "settingsWindow/button190",
  55. "help": "vcmi.settingsMainWindow.adventureTab",
  56. "items":
  57. [
  58. {
  59. "name": "generalTabButtonTitle",
  60. "type": "label",
  61. "font": "big",
  62. "alignment": "center",
  63. "color": "yellow",
  64. "text": "vcmi.settingsMainWindow.adventureTab.hover"
  65. }
  66. ]
  67. },
  68. {
  69. "index": 2,
  70. "type": "toggleButton",
  71. "position": {"x": 400, "y": 5},
  72. "image": "settingsWindow/button190",
  73. "help": "vcmi.settingsMainWindow.battleTab",
  74. "items":
  75. [
  76. {
  77. "name": "adventureTabButtonTitle",
  78. "type": "label",
  79. "font": "big",
  80. "alignment": "center",
  81. "color": "yellow",
  82. "text": "vcmi.settingsMainWindow.battleTab.hover"
  83. }
  84. ]
  85. }
  86. ],
  87. "callback": "activateSettingsTab"
  88. },
  89. {
  90. "name": "lineButtons",
  91. "type": "horizontalLine",
  92. "rect": { "x" : 375, "y" : 289, "w": 220, "h": 3}
  93. },
  94. {
  95. "name": "loadButton",
  96. "type": "button",
  97. "position": {"x": 380, "y": 306},
  98. "image": "SOLOAD.DEF",
  99. "imageOrder": [1, 0, 2, 3],
  100. "help": "core.help.321",
  101. "callback": "loadGame",
  102. "hotkey": "settingsLoadGame"
  103. },
  104. {
  105. "name": "saveButton",
  106. "type": "button",
  107. "position": {"x": 490, "y": 306},
  108. "image": "SOSAVE.DEF",
  109. "imageOrder": [1, 0, 2, 3],
  110. "help": "core.help.322",
  111. "callback": "saveGame",
  112. "hotkey": "settingsSaveGame"
  113. },
  114. {
  115. "name": "restartButton",
  116. "type": "button",
  117. "position": {"x": 380, "y": 364},
  118. "image": "SORSTRT.DEF",
  119. "imageOrder": [1, 0, 2, 3],
  120. "help": "core.help.323",
  121. "callback": "restartGame",
  122. "hotkey": "settingsRestartGame"
  123. },
  124. {
  125. "name": "mainMenuButton",
  126. "type": "button",
  127. "position": {"x": 490, "y": 364},
  128. "image": "SOMAIN.DEF",
  129. "imageOrder": [1, 0, 2, 3],
  130. "help": "core.help.320",
  131. "callback": "returnToMainMenu",
  132. "hotkey": "settingsToMainMenu"
  133. },
  134. {
  135. "name": "quitButton",
  136. "type": "button",
  137. "position": {"x": 380, "y": 422},
  138. "image": "soquit.def",
  139. "imageOrder": [1, 0, 2, 3],
  140. "help": "core.help.324",
  141. "callback": "quitGame",
  142. "hotkey": "settingsQuitGame"
  143. },
  144. {
  145. "name": "closeSettingsButton",
  146. "type": "button",
  147. "position": {"x": 490, "y": 422},
  148. "image": "soretrn.def",
  149. "imageOrder": [1, 0, 2, 3],
  150. "help": "core.help.325",
  151. "callback": "closeWindow",
  152. "hotkey": "globalReturn"
  153. }
  154. ]
  155. }