mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 19:53:48 +00:00
Cleaned up some unneeded fields in the gui files Fixed up querying presentation for joinServerMenu Removed usages of background image in favor of guiProfiles for various menus Implemented optionsMenu traversing options categories along with required keybinds Adjusted some guiProfiles' font sizes to improve legibility on smaller displays
93 lines
2.9 KiB
Text
93 lines
2.9 KiB
Text
//--- OBJECT WRITE BEGIN ---
|
|
$guiContent = new GuiControl(GameMenu) {
|
|
extent = "1280 720";
|
|
profile = "GuiDefaultProfile";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
isContainer = "1";
|
|
canSaveDynamicFields = "1";
|
|
|
|
new GuiInputCtrl(GameMenuInputHandler) {
|
|
ignoreMouseEvents = "1";
|
|
ActionMap = "GameMenuActionMap";
|
|
position = "-50 0";
|
|
extent = "50 50";
|
|
horizSizing = "width";
|
|
vertSizing = "height";
|
|
profile = "GuiInputCtrlProfile";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
};
|
|
new GuiChunkedBitmapCtrl(GameMenuBG) {
|
|
BitmapAsset = "UI:hudfill_image";
|
|
extent = "1280 720";
|
|
horizSizing = "width";
|
|
vertSizing = "height";
|
|
profile = "GuiDefaultProfile";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
isContainer = "1";
|
|
canSaveDynamicFields = "1";
|
|
|
|
new GuiPanel(GameMenuTitlePanel) {
|
|
extent = "1281 60";
|
|
horizSizing = "width";
|
|
profile = "GuiMenuPanelProfile";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
|
|
new GuiStackControl(GameMenuButtonList){
|
|
position = "40 0";
|
|
extent = "1240 60";
|
|
profile = GuiDefaultProfile;
|
|
stackingType = "Horizontal";
|
|
padding = "10";
|
|
horizSizing = "center";
|
|
vertSizing = "center";
|
|
};
|
|
|
|
new GuiControl(GameMenuNavButtonOverlay) {
|
|
extent = "1281 60";
|
|
horizSizing = "width";
|
|
vertSizing = "height";
|
|
profile = GuiNonModalDefaultProfile;
|
|
|
|
new GuiBitmapCtrl(GameMenuPrevNavIcon) {
|
|
BitmapAsset = "UI:Keyboard_Black_Q_image";
|
|
position = "0 24";
|
|
extent = "40 40";
|
|
profile = GuiNonModalDefaultProfile;
|
|
vertSizing = "top";
|
|
};
|
|
|
|
new GuiBitmapCtrl(GameMenuNextNavIcon) {
|
|
BitmapAsset = "UI:Keyboard_Black_E_image";
|
|
position = "0 24";
|
|
extent = "40 40";
|
|
profile = GuiNonModalDefaultProfile;
|
|
vertSizing = "top";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
new GuiPanel(GameMenuButtonPanel) {
|
|
position = "0 683";
|
|
extent = "1281 40";
|
|
horizSizing = "width";
|
|
vertSizing = "top";
|
|
profile = "GuiMenuPanelProfile";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
|
|
new GuiIconButtonCtrl(GameMenuBackBtn) {
|
|
BitmapAsset = "UI:Keyboard_Black_Escape_image";
|
|
sizeIconToButton = "1";
|
|
makeIconSquare = "1";
|
|
textLocation = "Center";
|
|
text = "Back";
|
|
position = "16 0";
|
|
extent = "140 40";
|
|
vertSizing = "center";
|
|
profile = "GuiMenuButtonProfile";
|
|
command = "Canvas.popDialog(GameMenu);";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
class = "MenuInputButton";
|
|
};
|
|
};
|
|
};
|
|
//--- OBJECT WRITE END ---
|