| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191 |
- //--- OBJECT WRITE BEGIN ---
- %guiContent = new GuiChunkedBitmapCtrl(MainMenuGui) {
- bitmap = "art/gui/background";
- useVariable = "0";
- tile = "0";
- position = "0 0";
- extent = "1024 768";
- minExtent = "8 8";
- horizSizing = "width";
- vertSizing = "height";
- profile = "GuiDefaultProfile";
- visible = "1";
- active = "1";
- tooltipProfile = "GuiToolTipProfile";
- hovertime = "1000";
- isContainer = "1";
- canSave = "1";
- canSaveDynamicFields = "1";
- Enabled = "1";
- isDecoy = "0";
- new GuiBitmapCtrl(MainMenuAppLogo) {
- bitmap = "art/gui/Torque-3D-logo.png";
- wrap = "0";
- position = "540 30";
- extent = "443 139";
- minExtent = "8 2";
- horizSizing = "left";
- vertSizing = "bottom";
- profile = "GuiDefaultProfile";
- visible = "1";
- active = "1";
- tooltipProfile = "GuiToolTipProfile";
- hovertime = "1000";
- isContainer = "0";
- canSave = "1";
- canSaveDynamicFields = "1";
- Enabled = "1";
- isDecoy = "0";
- };
- new GuiControl() {
- position = "359 171";
- extent = "306 425";
- minExtent = "8 2";
- horizSizing = "center";
- vertSizing = "center";
- profile = "GuiDefaultProfile";
- visible = "1";
- active = "1";
- tooltipProfile = "GuiToolTipProfile";
- hovertime = "1000";
- isContainer = "1";
- canSave = "1";
- canSaveDynamicFields = "0";
- new GuiButtonCtrl() {
- text = "Play";
- groupNum = "-1";
- buttonType = "PushButton";
- useMouseEvents = "1";
- position = "9 26";
- extent = "219 75";
- minExtent = "8 8";
- horizSizing = "relative";
- vertSizing = "bottom";
- profile = "GuiMenuButtonProfile";
- visible = "1";
- active = "1";
- command = "Canvas.pushDialog(ChooseLevelDlg);";
- tooltipProfile = "GuiToolTipProfile";
- hovertime = "1000";
- isContainer = "0";
- canSave = "1";
- canSaveDynamicFields = "0";
- };
- new GuiButtonCtrl() {
- text = "Options";
- groupNum = "-1";
- buttonType = "PushButton";
- useMouseEvents = "0";
- position = "9 104";
- extent = "289 75";
- minExtent = "8 8";
- horizSizing = "relative";
- vertSizing = "bottom";
- profile = "GuiMenuButtonProfile";
- visible = "1";
- active = "1";
- command = "Canvas.pushDialog(optionsDlg);";
- tooltipProfile = "GuiToolTipProfile";
- hovertime = "1000";
- isContainer = "0";
- canSave = "1";
- canSaveDynamicFields = "0";
- };
- new GuiButtonCtrl() {
- text = "Gui Editor";
- groupNum = "-1";
- buttonType = "PushButton";
- useMouseEvents = "0";
- position = "9 182";
- extent = "289 75";
- minExtent = "8 8";
- horizSizing = "relative";
- vertSizing = "bottom";
- profile = "GuiMenuButtonProfile";
- visible = "1";
- active = "1";
- command = "toggleGuiEditor(1);";
- tooltipProfile = "GuiToolTipProfile";
- tooltip = "The GUI Editor is accessible in-game by pressing F10";
- hovertime = "1000";
- isContainer = "0";
- internalName = "GuiEditorButton";
- canSave = "1";
- canSaveDynamicFields = "0";
- };
- new GuiButtonCtrl() {
- text = "World Editor";
- groupNum = "-1";
- buttonType = "PushButton";
- useMouseEvents = "0";
- position = "9 260";
- extent = "289 75";
- minExtent = "8 8";
- horizSizing = "relative";
- vertSizing = "bottom";
- profile = "GuiMenuButtonProfile";
- visible = "1";
- active = "1";
- command = "toggleEditor(1);";
- tooltipProfile = "GuiToolTipProfile";
- tooltip = "The World Editor is accessible in-game by pressing F11";
- hovertime = "1000";
- isContainer = "0";
- internalName = "WorldEditorButton";
- canSave = "1";
- canSaveDynamicFields = "0";
- };
- new GuiButtonCtrl() {
- text = "Exit";
- groupNum = "-1";
- buttonType = "PushButton";
- useMouseEvents = "0";
- position = "9 338";
- extent = "289 75";
- minExtent = "8 8";
- horizSizing = "relative";
- vertSizing = "bottom";
- profile = "GuiMenuButtonProfile";
- visible = "1";
- active = "1";
- command = "quit();";
- tooltipProfile = "GuiToolTipProfile";
- hovertime = "1000";
- isContainer = "0";
- internalName = "ExitButton";
- canSave = "1";
- canSaveDynamicFields = "0";
- };
- new GuiButtonCtrl() {
- text = "Replay";
- groupNum = "-1";
- buttonType = "PushButton";
- useMouseEvents = "0";
- position = "215 26";
- extent = "83 75";
- minExtent = "8 2";
- horizSizing = "right";
- vertSizing = "bottom";
- profile = "GuiMenuButtonProfile";
- visible = "1";
- active = "1";
- command = "Canvas.pushDialog(RecordingsDlg);";
- tooltipProfile = "GuiToolTipProfile";
- hovertime = "1000";
- isContainer = "0";
- canSave = "1";
- canSaveDynamicFields = "0";
- };
- };
- };
- //--- OBJECT WRITE END ---
- function MainMenuGui::onWake(%this)
- {
- if (isFunction("getWebDeployment") &&
- getWebDeployment() &&
- isObject(%this-->ExitButton))
- %this-->ExitButton.setVisible(false);
- }
|