mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-20 04:34:48 +00:00
Added proper container bracketing for the main menu buttons and made that the main navigation target Added logic to UINav to prevent needlessly re-setting the root page if it already is the root page, which would break the navigation stack Added logic to UINav toprevent needlessly adding duplicate pages whicn would break the navigation stack Added logic to close the chooseLevelDlg page when the level is loaded to avoid the page being left hanging on the nav stack Fixed assetId for no preview image fallback on the chooseLevelDlg page Fixed display of icons in the shape editor shape helper section Fixed name lookup on terrain material editor dialogue which would break saving of terrain materials Disables TORQUE_SFX_DirectX which is currently not in use and nonfunctional
81 lines
2.5 KiB
Plaintext
81 lines
2.5 KiB
Plaintext
//--- 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";
|
|
position = "0 280";
|
|
extent = "400 55";
|
|
profile = "GuiMenuButtonProfile";
|
|
command = "openWorldEditorBtn();";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
};
|
|
new GuiButtonCtrl(MainMenuGuiEditBtn) {
|
|
text = "Open GUI Editor";
|
|
position = "0 350";
|
|
extent = "400 55";
|
|
profile = "GuiMenuButtonProfile";
|
|
command = "openGUIEditorBtn();";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
};
|
|
new GuiButtonCtrl(MainMenuExitBtn) {
|
|
text = "Exit";
|
|
position = "0 420";
|
|
extent = "400 55";
|
|
profile = "GuiMenuButtonProfile";
|
|
command = "quit();";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
};
|
|
};
|
|
};
|
|
//--- OBJECT WRITE END ---
|