mainMenuGui.gui 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. //--- OBJECT WRITE BEGIN ---
  2. %guiContent = new GuiChunkedBitmapCtrl(MainMenuGui) {
  3. bitmap = "art/gui/background";
  4. useVariable = "0";
  5. tile = "0";
  6. position = "0 0";
  7. extent = "1024 768";
  8. minExtent = "8 8";
  9. horizSizing = "width";
  10. vertSizing = "height";
  11. profile = "GuiDefaultProfile";
  12. visible = "1";
  13. active = "1";
  14. tooltipProfile = "GuiToolTipProfile";
  15. hovertime = "1000";
  16. isContainer = "1";
  17. canSave = "1";
  18. canSaveDynamicFields = "1";
  19. Enabled = "1";
  20. isDecoy = "0";
  21. new GuiBitmapCtrl(MainMenuAppLogo) {
  22. bitmap = "art/gui/Torque-3D-logo.png";
  23. wrap = "0";
  24. position = "540 30";
  25. extent = "443 139";
  26. minExtent = "8 2";
  27. horizSizing = "left";
  28. vertSizing = "bottom";
  29. profile = "GuiDefaultProfile";
  30. visible = "1";
  31. active = "1";
  32. tooltipProfile = "GuiToolTipProfile";
  33. hovertime = "1000";
  34. isContainer = "0";
  35. canSave = "1";
  36. canSaveDynamicFields = "1";
  37. Enabled = "1";
  38. isDecoy = "0";
  39. };
  40. new GuiControl() {
  41. position = "359 171";
  42. extent = "306 425";
  43. minExtent = "8 2";
  44. horizSizing = "center";
  45. vertSizing = "center";
  46. profile = "GuiDefaultProfile";
  47. visible = "1";
  48. active = "1";
  49. tooltipProfile = "GuiToolTipProfile";
  50. hovertime = "1000";
  51. isContainer = "1";
  52. canSave = "1";
  53. canSaveDynamicFields = "0";
  54. new GuiButtonCtrl() {
  55. text = "Play";
  56. groupNum = "-1";
  57. buttonType = "PushButton";
  58. useMouseEvents = "1";
  59. position = "9 26";
  60. extent = "219 75";
  61. minExtent = "8 8";
  62. horizSizing = "relative";
  63. vertSizing = "bottom";
  64. profile = "GuiMenuButtonProfile";
  65. visible = "1";
  66. active = "1";
  67. command = "Canvas.pushDialog(ChooseLevelDlg);";
  68. tooltipProfile = "GuiToolTipProfile";
  69. hovertime = "1000";
  70. isContainer = "0";
  71. canSave = "1";
  72. canSaveDynamicFields = "0";
  73. };
  74. new GuiButtonCtrl() {
  75. text = "Options";
  76. groupNum = "-1";
  77. buttonType = "PushButton";
  78. useMouseEvents = "0";
  79. position = "9 104";
  80. extent = "289 75";
  81. minExtent = "8 8";
  82. horizSizing = "relative";
  83. vertSizing = "bottom";
  84. profile = "GuiMenuButtonProfile";
  85. visible = "1";
  86. active = "1";
  87. command = "Canvas.pushDialog(optionsDlg);";
  88. tooltipProfile = "GuiToolTipProfile";
  89. hovertime = "1000";
  90. isContainer = "0";
  91. canSave = "1";
  92. canSaveDynamicFields = "0";
  93. };
  94. new GuiButtonCtrl() {
  95. text = "Gui Editor";
  96. groupNum = "-1";
  97. buttonType = "PushButton";
  98. useMouseEvents = "0";
  99. position = "9 182";
  100. extent = "289 75";
  101. minExtent = "8 8";
  102. horizSizing = "relative";
  103. vertSizing = "bottom";
  104. profile = "GuiMenuButtonProfile";
  105. visible = "1";
  106. active = "1";
  107. command = "toggleGuiEditor(1);";
  108. tooltipProfile = "GuiToolTipProfile";
  109. tooltip = "The GUI Editor is accessible in-game by pressing F10";
  110. hovertime = "1000";
  111. isContainer = "0";
  112. internalName = "GuiEditorButton";
  113. canSave = "1";
  114. canSaveDynamicFields = "0";
  115. };
  116. new GuiButtonCtrl() {
  117. text = "World Editor";
  118. groupNum = "-1";
  119. buttonType = "PushButton";
  120. useMouseEvents = "0";
  121. position = "9 260";
  122. extent = "289 75";
  123. minExtent = "8 8";
  124. horizSizing = "relative";
  125. vertSizing = "bottom";
  126. profile = "GuiMenuButtonProfile";
  127. visible = "1";
  128. active = "1";
  129. command = "toggleEditor(1);";
  130. tooltipProfile = "GuiToolTipProfile";
  131. tooltip = "The World Editor is accessible in-game by pressing F11";
  132. hovertime = "1000";
  133. isContainer = "0";
  134. internalName = "WorldEditorButton";
  135. canSave = "1";
  136. canSaveDynamicFields = "0";
  137. };
  138. new GuiButtonCtrl() {
  139. text = "Exit";
  140. groupNum = "-1";
  141. buttonType = "PushButton";
  142. useMouseEvents = "0";
  143. position = "9 338";
  144. extent = "289 75";
  145. minExtent = "8 8";
  146. horizSizing = "relative";
  147. vertSizing = "bottom";
  148. profile = "GuiMenuButtonProfile";
  149. visible = "1";
  150. active = "1";
  151. command = "quit();";
  152. tooltipProfile = "GuiToolTipProfile";
  153. hovertime = "1000";
  154. isContainer = "0";
  155. internalName = "ExitButton";
  156. canSave = "1";
  157. canSaveDynamicFields = "0";
  158. };
  159. new GuiButtonCtrl() {
  160. text = "Replay";
  161. groupNum = "-1";
  162. buttonType = "PushButton";
  163. useMouseEvents = "0";
  164. position = "215 26";
  165. extent = "83 75";
  166. minExtent = "8 2";
  167. horizSizing = "right";
  168. vertSizing = "bottom";
  169. profile = "GuiMenuButtonProfile";
  170. visible = "1";
  171. active = "1";
  172. command = "Canvas.pushDialog(RecordingsDlg);";
  173. tooltipProfile = "GuiToolTipProfile";
  174. hovertime = "1000";
  175. isContainer = "0";
  176. canSave = "1";
  177. canSaveDynamicFields = "0";
  178. };
  179. };
  180. };
  181. //--- OBJECT WRITE END ---
  182. function MainMenuGui::onWake(%this)
  183. {
  184. if (isFunction("getWebDeployment") &&
  185. getWebDeployment() &&
  186. isObject(%this-->ExitButton))
  187. %this-->ExitButton.setVisible(false);
  188. }