Torque3D/Templates/BaseGame/game/data/UI/guis/MainMenuButtons.gui

85 lines
2.8 KiB
Plaintext
Raw Normal View History

//--- OBJECT WRITE BEGIN ---
$guiContent = new GuiControl(MainMenuButtons) {
extent = "1024 768";
horizSizing = "width";
vertSizing = "height";
profile = "GuiNonModalDefaultProfile";
tooltipProfile = "GuiToolTipProfile";
isContainer = "1";
canSaveDynamicFields = "1";
originalAssetName = "MainMenuButtons";
new GuiStackControl(MainMenuButtonList) {
padding = "15";
dynamicSize = "0";
position = "312 145";
extent = "400 477";
horizSizing = "center";
vertSizing = "center";
profile = "GuiDefaultProfile";
tooltipProfile = "GuiToolTipProfile";
superClass = "MenuList";
new GuiButtonCtrl(MainMenuSinglePlayerBtn) {
text = "Single Player";
extent = "400 55";
profile = "GuiMenuButtonProfile";
command = "openSinglePlayerMenu();";
tooltipProfile = "GuiToolTipProfile";
};
new GuiButtonCtrl(MainMenuCreateSrvrBtn) {
text = "Create Server";
position = "0 70";
extent = "400 55";
profile = "GuiMenuButtonProfile";
command = "openMultiPlayerMenu();";
tooltipProfile = "GuiToolTipProfile";
};
new GuiButtonCtrl(MainMenuJoinSrvrBtn) {
text = "Join Server";
position = "0 140";
extent = "400 55";
profile = "GuiMenuButtonProfile";
command = "openJoinServerMenu();";
tooltipProfile = "GuiToolTipProfile";
};
new GuiButtonCtrl(MainMenuOptionBtn) {
text = "Options";
position = "0 210";
extent = "400 55";
profile = "GuiMenuButtonProfile";
command = "openOptionsMenu();";
tooltipProfile = "GuiToolTipProfile";
};
new GuiButtonCtrl(MainMenuWorldEditBtn) {
text = "Open World Editor (F11)";
position = "0 280";
extent = "400 55";
profile = "GuiMenuButtonProfile";
command = "openWorldEditorBtn();";
tooltipProfile = "GuiToolTipProfile";
enabled = (ModuleDatabase.findModule("ToolsModule") !$= "");
visible = (ModuleDatabase.findModule("ToolsModule") !$= "");
};
new GuiButtonCtrl(MainMenuGuiEditBtn) {
text = "Open GUI Editor (F10)";
position = "0 350";
extent = "400 55";
profile = "GuiMenuButtonProfile";
command = "openGUIEditorBtn();";
tooltipProfile = "GuiToolTipProfile";
enabled = (ModuleDatabase.findModule("ToolsModule") !$= "");
visible = (ModuleDatabase.findModule("ToolsModule") !$= "");
};
new GuiButtonCtrl(MainMenuExitBtn) {
text = "Exit";
position = "0 420";
extent = "400 55";
profile = "GuiMenuButtonProfile";
command = "quit();";
tooltipProfile = "GuiToolTipProfile";
};
};
};
//--- OBJECT WRITE END ---