mainMenu.gui 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. //--- OBJECT WRITE BEGIN ---
  2. $guiContent = new GuiControl(MainMenuGui) {
  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. new GuiInputCtrl(MainMenuInputHandler) {
  13. ignoreMouseEvents = "1";
  14. ActionMap = "BaseUIActionMap";
  15. position = "-50 0";
  16. extent = "2186 851";
  17. horizSizing = "width";
  18. vertSizing = "height";
  19. profile = "GuiInputCtrlProfile";
  20. tooltipProfile = "GuiToolTipProfile";
  21. };
  22. new GuiBitmapCtrl(SideBackgroundImage) {
  23. BitmapAsset = "UI:menu_side_background_image";
  24. position = "0 -48";
  25. extent = "900 600";
  26. vertSizing = "top";
  27. profile = "GuiDefaultProfile";
  28. tooltipProfile = "GuiToolTipProfile";
  29. };
  30. new GuiBitmapCtrl(MainMenuAppLogo) {
  31. BitmapAsset = "UI:Torque_3D_logo_image";
  32. position = "460 78";
  33. extent = "360 100";
  34. horizSizing = "center";
  35. profile = "GuiDefaultProfile";
  36. tooltipProfile = "GuiToolTipProfile";
  37. canSaveDynamicFields = "1";
  38. autoFitExtents = "0";
  39. bitmapMode = "Stretched";
  40. groupNum = "-1";
  41. masked = "0";
  42. navigationIndex = "-1";
  43. useModifiers = "0";
  44. useStates = "1";
  45. };
  46. new GuiPanel(MainMenuButtonPanel) {
  47. position = "0 683";
  48. extent = "1281 40";
  49. horizSizing = "width";
  50. vertSizing = "top";
  51. profile = "GuiMenuPanelProfile";
  52. tooltipProfile = "GuiToolTipProfile";
  53. new GuiIconButtonCtrl(MainMenuGoButton) {
  54. BitmapAsset = "UI:Keyboard_Black_Return_image";
  55. sizeIconToButton = "1";
  56. makeIconSquare = "1";
  57. textLocation = "Center";
  58. text = "Go";
  59. position = "1115 0";
  60. extent = "140 40";
  61. horizSizing = "left";
  62. vertSizing = "center";
  63. profile = "GuiMenuButtonProfile";
  64. command = "activateSelected();";
  65. tooltipProfile = "GuiToolTipProfile";
  66. };
  67. };
  68. new GuiStackControl(MainMenuButtonList) {
  69. padding = "5";
  70. dynamicSize = "0";
  71. position = "440 199";
  72. extent = "400 322";
  73. horizSizing = "center";
  74. vertSizing = "center";
  75. profile = "GuiDefaultProfile";
  76. tooltipProfile = "GuiToolTipProfile";
  77. new GuiButtonCtrl(MainMenuSinglePlayerBtn) {
  78. text = "Single Player";
  79. extent = "400 40";
  80. profile = "GuiMenuButtonProfile";
  81. command = "$pref::HostMultiPlayer=false;\nCanvas.pushDialog(ChooseLevelMenu);";
  82. tooltipProfile = "GuiToolTipProfile";
  83. class="MainMenuButton";
  84. groupNum = 1;
  85. };
  86. new GuiButtonCtrl(MainMenuCreateSrvrBtn) {
  87. text = "Create Server";
  88. position = "0 45";
  89. extent = "400 40";
  90. profile = "GuiMenuButtonProfile";
  91. command = "$pref::HostMultiPlayer=true;Canvas.pushDialog(ChooseLevelMenu);";
  92. tooltipProfile = "GuiToolTipProfile";
  93. class="MainMenuButton";
  94. groupNum = 1;
  95. };
  96. new GuiButtonCtrl(MainMenuJoinSrvrBtn) {
  97. text = "Join Server";
  98. position = "0 90";
  99. extent = "400 40";
  100. profile = "GuiMenuButtonProfile";
  101. command = "Canvas.pushDialog(JoinServerMenu);";
  102. tooltipProfile = "GuiToolTipProfile";
  103. class="MainMenuButton";
  104. groupNum = 1;
  105. };
  106. new GuiButtonCtrl(MainMenuOptionBtn) {
  107. text = "Options";
  108. position = "0 135";
  109. extent = "400 40";
  110. profile = "GuiMenuButtonProfile";
  111. command = "Canvas.pushDialog(OptionsMenu);";
  112. tooltipProfile = "GuiToolTipProfile";
  113. class="MainMenuButton";
  114. groupNum = 1;
  115. };
  116. new GuiButtonCtrl(MainMenuWorldEditBtn) {
  117. text = "Open World Editor (F11)";
  118. position = "0 180";
  119. extent = "400 40";
  120. profile = "GuiMenuButtonProfile";
  121. command = "fastLoadWorldEdit(1);";
  122. tooltipProfile = "GuiToolTipProfile";
  123. class="MainMenuButton";
  124. groupNum = 1;
  125. };
  126. new GuiButtonCtrl(MainMenuGuiEditBtn) {
  127. text = "Open GUI Editor (F10)";
  128. position = "0 225";
  129. extent = "400 40";
  130. profile = "GuiMenuButtonProfile";
  131. command = "fastLoadGUIEdit(1);";
  132. tooltipProfile = "GuiToolTipProfile";
  133. class="MainMenuButton";
  134. groupNum = 1;
  135. };
  136. new GuiButtonCtrl(MainMenuExitBtn) {
  137. text = "Exit";
  138. position = "0 270";
  139. extent = "400 40";
  140. profile = "GuiMenuButtonProfile";
  141. command = "quit();";
  142. tooltipProfile = "GuiToolTipProfile";
  143. class="MainMenuButton";
  144. groupNum = 1;
  145. };
  146. };
  147. };
  148. //--- OBJECT WRITE END ---