settingsMainContainer.json 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. {
  2. "items":
  3. [
  4. {
  5. "name": "background",
  6. "type": "picture",
  7. "image": "vcmiSettingsWindow",
  8. "position": {"x": 0, "y": 0}
  9. },
  10. {
  11. "name": "settingsTabs",
  12. "type": "toggleGroup",
  13. "position": {
  14. "x": 0,
  15. "y": 0
  16. },
  17. "items":
  18. [
  19. {
  20. "index": 0,
  21. "type": "toggleButton",
  22. "position": {"x": 0, "y": 0},
  23. "image": "buttons/quadwide",
  24. "help": "vcmi.settingsMainWindow.systemTab",
  25. "items":
  26. [
  27. {
  28. "name": "generalTabButtonTitle",
  29. "type": "label",
  30. "font": "big",
  31. "alignment": "center",
  32. "color": "yellow",
  33. "text": "core.genrltxt.568"
  34. }
  35. ]
  36. },
  37. {
  38. "index": 1,
  39. "type": "toggleButton",
  40. "position": {"x": 150, "y": 0},
  41. "image": "buttons/quadwide",
  42. "help": "vcmi.settingsMainWindow.adventureTab",
  43. "items":
  44. [
  45. {
  46. "name": "generalTabButtonTitle",
  47. "type": "label",
  48. "font": "big",
  49. "alignment": "center",
  50. "color": "yellow",
  51. "text": "vcmi.settingsMainWindow.adventureTab.hover"
  52. }
  53. ]
  54. },
  55. {
  56. "index": 2,
  57. "type": "toggleButton",
  58. "position": {"x": 300, "y": 0},
  59. "image": "buttons/quadwide",
  60. "help": "vcmi.settingsMainWindow.battleTab",
  61. "items":
  62. [
  63. {
  64. "name": "adventureTabButtonTitle",
  65. "type": "label",
  66. "font": "big",
  67. "alignment": "center",
  68. "color": "yellow",
  69. "text": "core.genrltxt.392"
  70. }
  71. ]
  72. },
  73. {
  74. "index": 3,
  75. "type": "toggleButton",
  76. "position": {"x": 450, "y": 0},
  77. "image": "buttons/quadwide",
  78. "help": "vcmi.settingsMainWindow.otherTab",
  79. "items":
  80. [
  81. {
  82. "name": "otherTabButtonTitle",
  83. "type": "label",
  84. "font": "big",
  85. "alignment": "center",
  86. "color": "yellow",
  87. "text": "vcmi.settingsMainWindow.otherTab.hover"
  88. }
  89. ]
  90. }
  91. ],
  92. "callback": "activateSettingsTab"
  93. },
  94. {
  95. "name": "loadButton",
  96. "type": "button",
  97. "position": {"x": 386, "y": 383},
  98. "image": "SOLOAD.DEF",
  99. "imageOrder": [1, 0, 2, 3],
  100. "help": "core.help.321",
  101. "callback": "loadGame",
  102. "hotkey": "l"
  103. },
  104. {
  105. "name": "saveButton",
  106. "type": "button",
  107. "position": {"x": 497, "y": 383},
  108. "image": "SOSAVE.DEF",
  109. "imageOrder": [1, 0, 2, 3],
  110. "help": "core.help.322",
  111. "callback": "saveGame",
  112. "hotkey": "s"
  113. },
  114. {
  115. "name": "restartButton",
  116. "type": "button",
  117. "position": {"x": 386, "y": 442},
  118. "image": "SORSTRT.DEF",
  119. "imageOrder": [1, 0, 2, 3],
  120. "help": "core.help.323",
  121. "callback": "restartGame",
  122. "hotkey": "r"
  123. },
  124. {
  125. "name": "mainMenuButton",
  126. "type": "button",
  127. "position": {"x": 497, "y": 442},
  128. "image": "SOMAIN.DEF",
  129. "imageOrder": [1, 0, 2, 3],
  130. "help": "core.help.320",
  131. "callback": "returnToMainMenu",
  132. "hotkey": "m"
  133. },
  134. {
  135. "name": "quitButton",
  136. "type": "button",
  137. "position": {"x": 386, "y": 500},
  138. "image": "soquit.def",
  139. "imageOrder": [1, 0, 2, 3],
  140. "help": "core.help.324",
  141. "callback": "quitGame",
  142. "hotkey": "q"
  143. },
  144. {
  145. "name": "closeSettingsButton",
  146. "type": "button",
  147. "position": {"x": 497, "y": 500},
  148. "image": "soretrn.def",
  149. "imageOrder": [1, 0, 2, 3],
  150. "help": "core.help.325",
  151. "callback": "closeWindow",
  152. "hotkey": ["esc", "backspace"]
  153. }
  154. ]
  155. }