mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +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
162 lines
4.8 KiB
Plaintext
162 lines
4.8 KiB
Plaintext
//--- OBJECT WRITE BEGIN ---
|
|
$guiContent = new GuiControl(JoinServerMenu) {
|
|
extent = "1280 720";
|
|
horizSizing = "width";
|
|
vertSizing = "height";
|
|
profile = "GuiMenuBackgroundProfile";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
isContainer = "1";
|
|
canSaveDynamicFields = "1";
|
|
|
|
new GuiInputCtrl(JoinServerInputHandler) {
|
|
ignoreMouseEvents = "1";
|
|
ActionMap = "JoinServerActionMap";
|
|
position = "-50 0";
|
|
extent = "50 50";
|
|
horizSizing = "width";
|
|
vertSizing = "height";
|
|
profile = "GuiInputCtrlProfile";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
};
|
|
|
|
new GuiPanel(JoinServerTitlePanel) {
|
|
extent = "1281 60";
|
|
horizSizing = "width";
|
|
profile = "GuiMenuPanelProfile";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
|
|
new GuiTextCtrl() {
|
|
text = "JOIN SERVER";
|
|
position = "22 23";
|
|
extent = "220 28";
|
|
profile = "MenuHeaderText";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
};
|
|
};
|
|
new GuiContainer() {
|
|
position = "203 61";
|
|
extent = "900 30";
|
|
profile = GuiMenuPanelProfile;
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
horizSizing = "center";
|
|
vertSizing = "bottom";
|
|
|
|
new GuiTextCtrl() {
|
|
text = "Server Details";
|
|
position = "0 0";
|
|
extent = "700 30";
|
|
horizSizing = "right";
|
|
vertSizing = "center";
|
|
profile = "MenuSubHeaderText";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
};
|
|
|
|
new GuiTextCtrl() {
|
|
text = "Ping";
|
|
position = "700 0";
|
|
extent = "70 30";
|
|
horizSizing = "left";
|
|
vertSizing = "center";
|
|
profile = "MenuSubHeaderCenteredText";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
};
|
|
|
|
new GuiTextCtrl() {
|
|
text = "Player Count";
|
|
position = "770 0";
|
|
extent = "130 30";
|
|
horizSizing = "left";
|
|
vertSizing = "center";
|
|
profile = "MenuSubHeaderCenteredText";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
};
|
|
};
|
|
new GuiScrollCtrl() {
|
|
hScrollBar = "alwaysOff";
|
|
vScrollBar = "dynamic";
|
|
position = "203 91";
|
|
extent = "900 621";
|
|
minExtent = "8 8";
|
|
horizSizing = "center";
|
|
vertSizing = "height";
|
|
profile = "GuiMenuScrollProfile";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
|
|
new GuiStackControl(JoinServerList) {
|
|
padding = "10";
|
|
changeChildSizeToFit = "0";
|
|
position = "1 1";
|
|
extent = "888 16";
|
|
horizSizing = "center";
|
|
vertSizing = "center";
|
|
profile = "GuiMenuDefaultProfile";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
};
|
|
};
|
|
new GuiPanel(JoinServerButtonPanel) {
|
|
position = "0 683";
|
|
extent = "1281 40";
|
|
horizSizing = "width";
|
|
vertSizing = "top";
|
|
profile = "GuiMenuPanelProfile";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
|
|
new GuiIconButtonCtrl(JoinServerJoinBtn) {
|
|
BitmapAsset = "UI:Keyboard_Black_Return_image";
|
|
sizeIconToButton = "1";
|
|
makeIconSquare = "1";
|
|
textLocation = "Center";
|
|
text = "Join";
|
|
position = "1115 0";
|
|
extent = "140 40";
|
|
horizSizing = "left";
|
|
vertSizing = "center";
|
|
profile = "GuiMenuButtonProfile";
|
|
command = "JoinServerMenu.join();";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
};
|
|
new GuiIconButtonCtrl(JoinServerQLanBtn) {
|
|
BitmapAsset = "UI:Keyboard_Black_Escape_image";
|
|
sizeIconToButton = "1";
|
|
makeIconSquare = "1";
|
|
textLocation = "Center";
|
|
text = "Query Lan";
|
|
position = "965 0";
|
|
extent = "140 40";
|
|
horizSizing = "left";
|
|
vertSizing = "center";
|
|
profile = "GuiMenuButtonProfile";
|
|
command = "JoinServerMenu.queryLan();";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
};
|
|
new GuiIconButtonCtrl(JoinServerQServerBtn) {
|
|
BitmapAsset = "UI:Keyboard_Black_Escape_image";
|
|
sizeIconToButton = "1";
|
|
makeIconSquare = "1";
|
|
textLocation = "Center";
|
|
text = "Query Server";
|
|
position = "800 0";
|
|
extent = "160 40";
|
|
horizSizing = "left";
|
|
vertSizing = "center";
|
|
profile = "GuiMenuButtonProfile";
|
|
command = "JoinServerMenu.join();";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
};
|
|
new GuiIconButtonCtrl(JoinServerBackBtn) {
|
|
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();";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
};
|
|
};
|
|
};
|
|
//--- OBJECT WRITE END ---
|