mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-10 23:11:01 +00:00
Also fixes behavior handling of menu input buttons not refreshing reliably Adds ability to define a control on a MenuList to act as a highlighter over the currently selected control Cleaned up BaseUI pages to use UINavigation which reduced a lot of duplication of elements and code
79 lines
2.5 KiB
Plaintext
79 lines
2.5 KiB
Plaintext
//--- OBJECT WRITE BEGIN ---
|
|
$guiContent = new GuiControl(MainMenuButtons) {
|
|
extent = "1024 768";
|
|
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 ---
|