extraOptionsTab.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. {
  2. "library" : "config/widgets/settings/library.json",
  3. "items":
  4. [
  5. {
  6. "name": "background",
  7. "type": "picture",
  8. "image": "ADVOPTBK",
  9. "position": {"x": 0, "y": 6}
  10. },
  11. {
  12. "name": "textureCampaignOverdraw",
  13. "type": "texture",
  14. "color" : "blue",
  15. "image": "DIBOXBCK",
  16. "rect": {"x": 391, "y": 14, "w": 82, "h": 569}
  17. },
  18. {
  19. "name": "labelTitle",
  20. "type": "label",
  21. "font": "big",
  22. "alignment": "center",
  23. "color": "yellow",
  24. "text": "vcmi.optionsTab.extraOptions.hover",
  25. "position": {"x": 222, "y": 36}
  26. },
  27. {
  28. "name": "labelSubTitle",
  29. "type": "multiLineLabel",
  30. "font": "small",
  31. "alignment": "center",
  32. "color": "white",
  33. "text": "vcmi.optionsTab.extraOptions.help",
  34. "rect": {"x": 60, "y": 48, "w": 320, "h": 0},
  35. "adoptHeight": true
  36. },
  37. {
  38. "type": "transparentFilledRectangle",
  39. "rect": {"x": 54, "y": 127, "w": 335, "h": 2},
  40. "color": [24, 41, 90, 255]
  41. },
  42. {
  43. "type": "transparentFilledRectangle",
  44. "rect": {"x": 159, "y": 90, "w": 2, "h": 38},
  45. "color": [24, 41, 90, 255]
  46. },
  47. {
  48. "type": "transparentFilledRectangle",
  49. "rect": {"x": 235, "y": 90, "w": 2, "h": 38},
  50. "color": [24, 41, 90, 255]
  51. },
  52. {
  53. "type": "transparentFilledRectangle",
  54. "rect": {"x": 311, "y": 90, "w": 2, "h": 38},
  55. "color": [24, 41, 90, 255]
  56. },
  57. {
  58. "type": "transparentFilledRectangle",
  59. "rect": {"x": 55, "y": 556, "w": 335, "h": 19},
  60. "color": [24, 41, 90, 255]
  61. },
  62. {
  63. "name": "ExtraOptionsButtons",
  64. "type" : "verticalLayout",
  65. "customType" : "toggleButton",
  66. "position": {"x": 70, "y": 100},
  67. "items":
  68. [
  69. {
  70. "name": "buttonCheatAllowed",
  71. "image": "lobby/checkbox",
  72. "callback" : "setCheatAllowed",
  73. "help" : "vcmi.optionsTab.cheatAllowed",
  74. "selected" : true
  75. },
  76. {
  77. "name": "buttonUnlimitedReplay",
  78. "image": "lobby/checkbox",
  79. "callback" : "setUnlimitedReplay",
  80. "help" : "vcmi.optionsTab.unlimitedReplay",
  81. "selected" : true
  82. }
  83. ]
  84. },
  85. {
  86. "name": "ExtraOptionsLabels",
  87. "type" : "verticalLayout",
  88. "customType" : "label",
  89. "position": {"x": 110, "y": 103},
  90. "items":
  91. [
  92. {
  93. "name": "labelCheatAllowed",
  94. "font": "small",
  95. "alignment": "left",
  96. "color": "yellow",
  97. "text": "vcmi.optionsTab.cheatAllowed.hover"
  98. },
  99. {
  100. "name": "labelUnlimitedReplay",
  101. "font": "small",
  102. "alignment": "left",
  103. "color": "yellow",
  104. "text": "vcmi.optionsTab.unlimitedReplay.hover"
  105. }
  106. ]
  107. }
  108. ]
  109. }