ChooseLevelMenu.gui 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  1. //--- OBJECT WRITE BEGIN ---
  2. $guiContent = new GuiControl(ChooseLevelMenu) {
  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 = "1";
  12. currentMenuIdx = "0";
  13. launchInEditor = "0";
  14. new GuiInputCtrl(ChooseLevelInputHandler) {
  15. ignoreMouseEvents = "1";
  16. ActionMap = "ChooseLevelActionMap";
  17. position = "-50 0";
  18. extent = "2186 851";
  19. horizSizing = "width";
  20. vertSizing = "height";
  21. profile = "GuiInputCtrlProfile";
  22. tooltipProfile = "GuiToolTipProfile";
  23. };
  24. new GuiPanel(ChooseLevelTitlePanel) {
  25. extent = "1281 60";
  26. horizSizing = "width";
  27. profile = "GuiMenuPanelProfile";
  28. tooltipProfile = "GuiToolTipProfile";
  29. new GuiTextCtrl(ChooseLevelTitleText) {
  30. text = "SINGLE PLAYER";
  31. position = "22 23";
  32. extent = "1281 28";
  33. profile = "MenuHeaderText";
  34. tooltipProfile = "GuiToolTipProfile";
  35. };
  36. };
  37. new GuiStackControl(ChooseLevelMenuTabList) {
  38. stackingType = "Horizontal";
  39. padding = "10";
  40. position = "485 61";
  41. extent = "310 41";
  42. horizSizing = "center";
  43. profile = "GuiDefaultProfile";
  44. tooltipProfile = "GuiToolTipProfile";
  45. new GuiButtonCtrl() {
  46. text = "Game Mode";
  47. groupNum = "1";
  48. extent = "150 41";
  49. profile = "GuiMenuButtonProfile";
  50. command = "ChooseLevelMenu.openMenu(0);";
  51. tooltipProfile = "GuiToolTipProfile";
  52. internalName = "GameModeBtn";
  53. class = "ChooseLevelMenuButton";
  54. };
  55. new GuiButtonCtrl() {
  56. text = "Level";
  57. groupNum = "1";
  58. position = "160 0";
  59. extent = "150 41";
  60. profile = "GuiMenuButtonProfile";
  61. command = "ChooseLevelMenu.openMenu(1);";
  62. tooltipProfile = "GuiToolTipProfile";
  63. internalName = "LevelBtn";
  64. class = "ChooseLevelMenuButton";
  65. };
  66. new GuiButtonCtrl() {
  67. text = "Server Config";
  68. groupNum = "1";
  69. position = "320 0";
  70. extent = "150 41";
  71. profile = "GuiMenuButtonProfile";
  72. visible = "0";
  73. command = "ChooseLevelMenu.openMenu(2);";
  74. tooltipProfile = "GuiToolTipProfile";
  75. internalName = "ConfigBtn";
  76. class = "ChooseLevelMenuButton";
  77. hidden = "1";
  78. };
  79. };
  80. new GuiControl(ChooseLevelMenuNavButtonOverlay) {
  81. position = "0 61";
  82. extent = "1281 60";
  83. horizSizing = "width";
  84. profile = "GuiNonModalDefaultProfile";
  85. tooltipProfile = "GuiToolTipProfile";
  86. isContainer = "1";
  87. new GuiBitmapCtrl(ChooseLevelMenuPrevNavIcon) {
  88. BitmapAsset = "UI:Keyboard_Black_Q_image";
  89. position = "485 24";
  90. extent = "40 40";
  91. vertSizing = "top";
  92. profile = "GuiNonModalDefaultProfile";
  93. tooltipProfile = "GuiToolTipProfile";
  94. };
  95. new GuiBitmapCtrl(ChooseLevelMenuNextNavIcon) {
  96. BitmapAsset = "UI:Keyboard_Black_E_image";
  97. position = "595 24";
  98. extent = "40 40";
  99. vertSizing = "top";
  100. profile = "GuiNonModalDefaultProfile";
  101. tooltipProfile = "GuiToolTipProfile";
  102. };
  103. };
  104. new GuiContainer(GameModeSelectContainer) {
  105. position = "196 119";
  106. extent = "888 566";
  107. horizSizing = "center";
  108. profile = "GuiNonModalDefaultProfile";
  109. tooltipProfile = "GuiToolTipProfile";
  110. new GuiScrollCtrl(GameModePreviewScroll) {
  111. hScrollBar = "alwaysOff";
  112. vScrollBar = "dynamic";
  113. extent = "445 562";
  114. vertSizing = "height";
  115. profile = "GuiMenuScrollProfile";
  116. tooltipProfile = "GuiToolTipProfile";
  117. new GuiStackControl(GameModePreviewArray) {
  118. padding = "5";
  119. position = "1 1";
  120. extent = "443 60";
  121. horizSizing = "width";
  122. vertSizing = "height";
  123. profile = "GuiMenuDefaultProfile";
  124. tooltipProfile = "GuiToolTipProfile";
  125. };
  126. };
  127. new GuiBitmapCtrl(GameModePreviewBitmap) {
  128. position = "448 0";
  129. extent = "440 440";
  130. horizSizing = "left";
  131. profile = "GuiNonModalDefaultProfile";
  132. visible = "0";
  133. tooltipProfile = "GuiToolTipProfile";
  134. hidden = "1";
  135. };
  136. new GuiTextCtrl(GameModeNameText) {
  137. text = "DeathMatchGame";
  138. position = "448 445";
  139. extent = "440 20";
  140. horizSizing = "left";
  141. profile = "MenuSubHeaderText";
  142. tooltipProfile = "GuiToolTipProfile";
  143. internalName = "GameModeNameTxt";
  144. };
  145. new GuiMLTextCtrl(GameModeDescriptionText) {
  146. position = "448 473";
  147. extent = "440 19";
  148. horizSizing = "left";
  149. profile = "GuiMLTextProfile";
  150. tooltipProfile = "GuiToolTipProfile";
  151. internalName = "GameModeDescTxt";
  152. };
  153. };
  154. new GuiContainer(LevelSelectContainer) {
  155. position = "196 119";
  156. extent = "888 566";
  157. horizSizing = "center";
  158. profile = "GuiNonModalDefaultProfile";
  159. visible = "0";
  160. tooltipProfile = "GuiToolTipProfile";
  161. hidden = "1";
  162. new GuiScrollCtrl(LevelPreviewScroll) {
  163. hScrollBar = "alwaysOff";
  164. vScrollBar = "dynamic";
  165. extent = "445 562";
  166. vertSizing = "height";
  167. profile = "GuiMenuScrollProfile";
  168. tooltipProfile = "GuiToolTipProfile";
  169. new GuiStackControl(LevelPreviewArray) {
  170. padding = "5";
  171. position = "0 1";
  172. extent = "445 60";
  173. horizSizing = "width";
  174. vertSizing = "height";
  175. profile = "GuiMenuDefaultProfile";
  176. tooltipProfile = "GuiToolTipProfile";
  177. };
  178. };
  179. new GuiBitmapCtrl(LevelPreviewBitmap) {
  180. BitmapAsset = "";
  181. position = "448 0";
  182. extent = "440 440";
  183. horizSizing = "left";
  184. profile = "GuiNonModalDefaultProfile";
  185. tooltipProfile = "GuiToolTipProfile";
  186. };
  187. new GuiTextCtrl(LevelNameText) {
  188. text = "";
  189. position = "448 445";
  190. extent = "440 20";
  191. horizSizing = "left";
  192. profile = "MenuSubHeaderText";
  193. tooltipProfile = "GuiToolTipProfile";
  194. internalName = "levelNameTxt";
  195. };
  196. new GuiMLTextCtrl(LevelDescriptionText) {
  197. position = "448 473";
  198. extent = "440 19";
  199. horizSizing = "left";
  200. profile = "GuiMLTextProfile";
  201. tooltipProfile = "GuiToolTipProfile";
  202. internalName = "levelDescTxt";
  203. };
  204. };
  205. new GuiContainer(ServerConfigContainer) {
  206. position = "196 119";
  207. extent = "888 566";
  208. horizSizing = "center";
  209. profile = "GuiNonModalDefaultProfile";
  210. visible = "0";
  211. tooltipProfile = "GuiToolTipProfile";
  212. hidden = "1";
  213. new GuiScrollCtrl(ServerConfigScroll) {
  214. hScrollBar = "alwaysOff";
  215. vScrollBar = "dynamic";
  216. extent = "888 566";
  217. horizSizing = "width";
  218. vertSizing = "height";
  219. profile = "GuiMenuScrollProfile";
  220. tooltipProfile = "GuiToolTipProfile";
  221. new GuiStackControl(ServerConfigList) {
  222. padding = "5";
  223. changeChildSizeToFit = "0";
  224. position = "1 1";
  225. extent = "900 170";
  226. horizSizing = "width";
  227. vertSizing = "height";
  228. profile = "GuiMenuDefaultProfile";
  229. tooltipProfile = "GuiToolTipProfile";
  230. new GuiContainer() {
  231. extent = "900 30";
  232. horizSizing = "width";
  233. profile = "GuiDefaultProfile";
  234. tooltipProfile = "GuiToolTipProfile";
  235. new GuiTextCtrl() {
  236. text = "Host Player Name";
  237. position = "0 3";
  238. extent = "140 23";
  239. vertSizing = "center";
  240. profile = "MenuMLSubHeaderText";
  241. tooltipProfile = "GuiToolTipProfile";
  242. };
  243. new GuiTextEditCtrl(playerNameCTRL) {
  244. text = "Visitor";
  245. position = "606 4";
  246. extent = "295 22";
  247. horizSizing = "left";
  248. vertSizing = "center";
  249. profile = "MenuTextEditprofile";
  250. variable = "$pref::Player::Name";
  251. tooltipProfile = "GuiToolTipProfile";
  252. };
  253. };
  254. new GuiContainer() {
  255. position = "0 35";
  256. extent = "900 30";
  257. horizSizing = "width";
  258. profile = "GuiDefaultProfile";
  259. tooltipProfile = "GuiToolTipProfile";
  260. new GuiTextCtrl() {
  261. text = "Server Name";
  262. position = "0 3";
  263. extent = "101 23";
  264. vertSizing = "center";
  265. profile = "MenuMLSubHeaderText";
  266. tooltipProfile = "GuiToolTipProfile";
  267. };
  268. new GuiTextEditCtrl(serverNameCTRL) {
  269. text = "Torque 3D Server";
  270. position = "606 4";
  271. extent = "295 22";
  272. horizSizing = "left";
  273. vertSizing = "center";
  274. profile = "MenuTextEditprofile";
  275. variable = "$Pref::Server::Name";
  276. tooltipProfile = "GuiToolTipProfile";
  277. };
  278. };
  279. new GuiContainer() {
  280. position = "0 70";
  281. extent = "900 30";
  282. horizSizing = "width";
  283. profile = "GuiDefaultProfile";
  284. tooltipProfile = "GuiToolTipProfile";
  285. new GuiTextCtrl() {
  286. text = "Server Password";
  287. position = "0 3";
  288. extent = "135 23";
  289. vertSizing = "center";
  290. profile = "MenuMLSubHeaderText";
  291. tooltipProfile = "GuiToolTipProfile";
  292. };
  293. new GuiTextEditCtrl(serverPassCTRL) {
  294. position = "606 4";
  295. extent = "295 22";
  296. horizSizing = "left";
  297. vertSizing = "center";
  298. profile = "MenuTextEditprofile";
  299. variable = "$Pref::Server::Password";
  300. tooltipProfile = "GuiToolTipProfile";
  301. };
  302. };
  303. new GuiContainer() {
  304. position = "0 105";
  305. extent = "900 30";
  306. horizSizing = "width";
  307. profile = "GuiDefaultProfile";
  308. tooltipProfile = "GuiToolTipProfile";
  309. new GuiTextCtrl() {
  310. text = "Server Description";
  311. position = "0 3";
  312. extent = "147 23";
  313. vertSizing = "center";
  314. profile = "MenuMLSubHeaderText";
  315. tooltipProfile = "GuiToolTipProfile";
  316. };
  317. new GuiTextEditCtrl(serverInfoCTRL) {
  318. text = "This is a Torque 3D server.";
  319. position = "606 4";
  320. extent = "295 22";
  321. horizSizing = "left";
  322. vertSizing = "center";
  323. profile = "MenuTextEditprofile";
  324. variable = "$Pref::Server::Info";
  325. tooltipProfile = "GuiToolTipProfile";
  326. };
  327. };
  328. new GuiContainer() {
  329. position = "0 140";
  330. extent = "900 30";
  331. horizSizing = "width";
  332. profile = "GuiDefaultProfile";
  333. tooltipProfile = "GuiToolTipProfile";
  334. new GuiTextCtrl() {
  335. text = "Max Players";
  336. position = "0 3";
  337. extent = "94 23";
  338. vertSizing = "center";
  339. profile = "MenuMLSubHeaderText";
  340. tooltipProfile = "GuiToolTipProfile";
  341. };
  342. new GuiTextEditCtrl(serverMaxPlayersCTRL) {
  343. text = "64";
  344. position = "606 4";
  345. extent = "295 22";
  346. horizSizing = "left";
  347. vertSizing = "center";
  348. profile = "MenuTextEditprofile";
  349. variable = "$Pref::Server::MaxPlayers";
  350. tooltipProfile = "GuiToolTipProfile";
  351. };
  352. };
  353. };
  354. };
  355. };
  356. new GuiPanel(ChooseLevelButtonPanel) {
  357. position = "0 683";
  358. extent = "1281 40";
  359. horizSizing = "width";
  360. vertSizing = "top";
  361. profile = "GuiMenuPanelProfile";
  362. tooltipProfile = "GuiToolTipProfile";
  363. new GuiIconButtonCtrl(ChooseLevelNextBtn) {
  364. BitmapAsset = "UI:Keyboard_Black_Blank_image";
  365. sizeIconToButton = "1";
  366. makeIconSquare = "1";
  367. textLocation = "Center";
  368. text = "Start Game";
  369. position = "1092 0";
  370. extent = "163 40";
  371. horizSizing = "left";
  372. vertSizing = "center";
  373. profile = "GuiMenuButtonProfile";
  374. command = "ChooseLevelBegin(1);";
  375. tooltipProfile = "GuiToolTipProfile";
  376. };
  377. new GuiIconButtonCtrl(ChooseLevelBackBtn) {
  378. BitmapAsset = "UI:Keyboard_Black_Escape_image";
  379. sizeIconToButton = "1";
  380. makeIconSquare = "1";
  381. textLocation = "Center";
  382. text = "Back";
  383. position = "16 0";
  384. extent = "140 40";
  385. vertSizing = "center";
  386. profile = "GuiMenuButtonProfile";
  387. command = "Canvas.popDialog();";
  388. tooltipProfile = "GuiToolTipProfile";
  389. };
  390. };
  391. };
  392. //--- OBJECT WRITE END ---