optionsMenu.gui 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. //--- OBJECT WRITE BEGIN ---
  2. $guiContent = new GuiControl(OptionsMenu) {
  3. extent = "1280 720";
  4. minExtent = "8 8";
  5. horizSizing = "width";
  6. vertSizing = "height";
  7. profile = "GuiMenuBackgroundProfile";
  8. category = "BaseUI";
  9. tooltipProfile = "GuiToolTipProfile";
  10. isContainer = "1";
  11. canSaveDynamicFields = "0";
  12. new GuiInputCtrl(OptionsMenuInputHandler) {
  13. ignoreMouseEvents = "1";
  14. ActionMap = "OptionsMenuActionMap";
  15. position = "-50 0";
  16. extent = "2186 851";
  17. horizSizing = "width";
  18. vertSizing = "height";
  19. profile = "GuiInputCtrlProfile";
  20. tooltipProfile = "GuiToolTipProfile";
  21. };
  22. new GuiControl(OptionsMenuCategoryContainer) {
  23. position = "0 60";
  24. extent = "1280 49";
  25. horizSizing = "center";
  26. profile = "GuiDefaultProfile";
  27. tooltipProfile = "GuiToolTipProfile";
  28. isContainer = "1";
  29. new GuiStackControl(OptionsMenuCategoryList) {
  30. stackingType = "Horizontal";
  31. padding = "10";
  32. dynamicSize = "0";
  33. position = "330 0";
  34. extent = "650 40";
  35. horizSizing = "center";
  36. vertSizing = "center";
  37. profile = "GuiDefaultProfile";
  38. tooltipProfile = "GuiToolTipProfile";
  39. new GuiButtonCtrl() {
  40. text = "Video";
  41. extent = "120 40";
  42. profile = "GuiMenuButtonProfile";
  43. command = "OptionsMenu.openOptionsCategory(\"Video\");";
  44. tooltipProfile = "GuiToolTipProfile";
  45. };
  46. new GuiButtonCtrl() {
  47. text = "Audio";
  48. position = "130 0";
  49. extent = "120 40";
  50. profile = "GuiMenuButtonProfile";
  51. command = "OptionsMenu.openOptionsCategory(\"Audio\");";
  52. tooltipProfile = "GuiToolTipProfile";
  53. };
  54. new GuiButtonCtrl() {
  55. text = "Keyboard/Mouse";
  56. position = "260 0";
  57. extent = "220 40";
  58. profile = "GuiMenuButtonProfile";
  59. command = "OptionsMenu.openOptionsCategory(\"KBM\");";
  60. tooltipProfile = "GuiToolTipProfile";
  61. };
  62. new GuiButtonCtrl() {
  63. text = "Controller";
  64. position = "480 0";
  65. extent = "160 40";
  66. profile = "GuiMenuButtonProfile";
  67. command = "OptionsMenu.openOptionsCategory(\"Controller\");";
  68. tooltipProfile = "GuiToolTipProfile";
  69. };
  70. };
  71. new GuiControl(OptionsMenuNavButtonOverlay) {
  72. extent = "1281 40";
  73. horizSizing = "width";
  74. vertSizing = "height";
  75. profile = GuiNonModalDefaultProfile;
  76. new GuiBitmapCtrl(OptionsMenuPrevNavIcon) {
  77. BitmapAsset = "UI:Keyboard_Black_Q_image";
  78. position = "0 10";
  79. extent = "40 40";
  80. profile = GuiNonModalDefaultProfile;
  81. vertSizing = "top";
  82. };
  83. new GuiBitmapCtrl(OptionsMenuNextNavIcon) {
  84. BitmapAsset = "UI:Keyboard_Black_E_image";
  85. position = "0 10";
  86. extent = "40 40";
  87. profile = GuiNonModalDefaultProfile;
  88. vertSizing = "top";
  89. };
  90. };
  91. };
  92. new GuiScrollCtrl(OptionsMenuSettingsScroll) {
  93. hScrollBar = "alwaysOff";
  94. vScrollBar = "dynamic";
  95. position = "240 110";
  96. extent = "800 573";
  97. horizSizing = "center";
  98. vertSizing = "height";
  99. profile = "GuiMenuScrollProfile";
  100. tooltipProfile = "GuiToolTipProfile";
  101. new GuiStackControl(VideoSettingsList) {
  102. class = "OptionsMenuList";
  103. padding = "5";
  104. changeChildSizeToFit = "0";
  105. position = "0 1";
  106. extent = "800 200";
  107. horizSizing = "width";
  108. vertSizing = "height";
  109. profile = "GuiDefaultProfile";
  110. tooltipProfile = "GuiToolTipProfile";
  111. };
  112. new GuiStackControl(AudioSettingsList) {
  113. class = "OptionsMenuList";
  114. padding = "5";
  115. changeChildSizeToFit = "0";
  116. position = "0 1";
  117. extent = "800 200";
  118. horizSizing = "width";
  119. vertSizing = "height";
  120. profile = "GuiDefaultProfile";
  121. visible = "0";
  122. tooltipProfile = "GuiToolTipProfile";
  123. hidden = "1";
  124. };
  125. new GuiStackControl(KBMControlsList) {
  126. class = "OptionsMenuList";
  127. padding = "5";
  128. changeChildSizeToFit = "0";
  129. position = "0 1";
  130. extent = "800 200";
  131. horizSizing = "width";
  132. vertSizing = "height";
  133. profile = "GuiDefaultProfile";
  134. visible = "0";
  135. tooltipProfile = "GuiToolTipProfile";
  136. hidden = "1";
  137. };
  138. new GuiStackControl(GamepadControlsList) {
  139. class = "OptionsMenuList";
  140. padding = "5";
  141. changeChildSizeToFit = "0";
  142. position = "0 1";
  143. extent = "800 200";
  144. horizSizing = "width";
  145. vertSizing = "height";
  146. profile = "GuiDefaultProfile";
  147. visible = "0";
  148. tooltipProfile = "GuiToolTipProfile";
  149. hidden = "1";
  150. };
  151. };
  152. new GuiPanel(OptionMenuTitlePanel) {
  153. extent = "1281 60";
  154. horizSizing = "width";
  155. profile = "GuiMenuPanelProfile";
  156. tooltipProfile = "GuiToolTipProfile";
  157. new GuiTextCtrl() {
  158. text = "OPTIONS";
  159. position = "22 23";
  160. extent = "1281 28";
  161. profile = "MenuHeaderText";
  162. tooltipProfile = "GuiToolTipProfile";
  163. };
  164. };
  165. new GuiPanel(OptionsMenuButtonPanel) {
  166. position = "0 683";
  167. extent = "1281 40";
  168. horizSizing = "width";
  169. vertSizing = "top";
  170. profile = "GuiMenuPanelProfile";
  171. tooltipProfile = "GuiToolTipProfile";
  172. new GuiIconButtonCtrl(OptionsMenuBackBtn) {
  173. BitmapAsset = "UI:Keyboard_Black_Escape_image";
  174. sizeIconToButton = "1";
  175. makeIconSquare = "1";
  176. textLocation = "Center";
  177. text = "Back";
  178. position = "16 0";
  179. extent = "140 40";
  180. vertSizing = "center";
  181. profile = "GuiMenuButtonProfile";
  182. command = "tryCloseOptionsMenu(1);";
  183. tooltipProfile = "GuiToolTipProfile";
  184. class = "MenuInputButton";
  185. };
  186. new GuiIconButtonCtrl(OptionsMenuRemapBtn) {
  187. BitmapAsset = "UI:Keyboard_Black_Space_image";
  188. sizeIconToButton = "1";
  189. makeIconSquare = "1";
  190. textLocation = "Center";
  191. text = "Remap";
  192. position = "850 0";
  193. extent = "140 40";
  194. horizSizing = "left";
  195. vertSizing = "center";
  196. profile = "GuiMenuButtonProfile";
  197. command = "OptionsMenuActivateOption(1)";
  198. tooltipProfile = "GuiToolTipProfile";
  199. class = "MenuInputButton";
  200. };
  201. new GuiIconButtonCtrl(OptionsMenuApplyBtn) {
  202. BitmapAsset = "UI:Keyboard_Black_Return_image";
  203. sizeIconToButton = "1";
  204. makeIconSquare = "1";
  205. textLocation = "Center";
  206. text = "Apply";
  207. position = "990 0";
  208. extent = "140 40";
  209. horizSizing = "left";
  210. vertSizing = "center";
  211. profile = "GuiMenuButtonProfile";
  212. command = "OptionsMenu.applyChangedOptions();";
  213. tooltipProfile = "GuiToolTipProfile";
  214. class = "MenuInputButton";
  215. };
  216. new GuiIconButtonCtrl(OptionsMenuResetBtn) {
  217. BitmapAsset = "UI:Keyboard_Black_R_image";
  218. sizeIconToButton = "1";
  219. makeIconSquare = "1";
  220. textLocation = "Center";
  221. text = "Reset";
  222. position = "1135 0";
  223. extent = "140 40";
  224. horizSizing = "left";
  225. vertSizing = "center";
  226. profile = "GuiMenuButtonProfile";
  227. command = "OptionsMenu.resetSettings();";
  228. tooltipProfile = "GuiToolTipProfile";
  229. class = "MenuInputButton";
  230. };
  231. };
  232. };
  233. //--- OBJECT WRITE END ---