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
189 lines
5.8 KiB
Plaintext
189 lines
5.8 KiB
Plaintext
//--- OBJECT WRITE BEGIN ---
|
|
$guiContent = new GuiControl(OptionsMenu) {
|
|
extent = "1280 720";
|
|
minExtent = "8 8";
|
|
horizSizing = "width";
|
|
vertSizing = "height";
|
|
profile = "GuiMenuBackgroundProfile";
|
|
category = "BaseUI";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
isContainer = "1";
|
|
canSaveDynamicFields = "0";
|
|
|
|
new GuiInputCtrl(OptionsMenuInputHandler) {
|
|
ignoreMouseEvents = "1";
|
|
ActionMap = "OptionsMenuActionMap";
|
|
position = "-50 0";
|
|
extent = "2186 851";
|
|
horizSizing = "width";
|
|
vertSizing = "height";
|
|
profile = "GuiInputCtrlProfile";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
};
|
|
new GuiControl(OptionsMenuCategoryContainer) {
|
|
position = "0 60";
|
|
extent = "1280 49";
|
|
horizSizing = "center";
|
|
profile = "GuiDefaultProfile";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
isContainer = "1";
|
|
|
|
new GuiStackControl(OptionsMenuCategoryList) {
|
|
stackingType = "Horizontal";
|
|
padding = "10";
|
|
dynamicSize = "0";
|
|
position = "430 0";
|
|
extent = "420 40";
|
|
horizSizing = "center";
|
|
vertSizing = "center";
|
|
profile = "GuiDefaultProfile";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
|
|
new GuiButtonCtrl() {
|
|
text = "Video";
|
|
extent = "120 40";
|
|
profile = "GuiMenuButtonProfile";
|
|
command = "OptionsMenu.openOptionsCategory(\"Video\");";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
};
|
|
new GuiButtonCtrl() {
|
|
text = "Audio";
|
|
position = "130 0";
|
|
extent = "120 40";
|
|
profile = "GuiMenuButtonProfile";
|
|
command = "OptionsMenu.openOptionsCategory(\"Audio\");";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
};
|
|
new GuiButtonCtrl() {
|
|
text = "Controls";
|
|
position = "260 0";
|
|
extent = "160 40";
|
|
profile = "GuiMenuButtonProfile";
|
|
command = "OptionsMenu.openOptionsCategory(\"Controls\");";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
};
|
|
};
|
|
|
|
new GuiControl(OptionsMenuNavButtonOverlay) {
|
|
extent = "1281 40";
|
|
horizSizing = "width";
|
|
vertSizing = "height";
|
|
profile = GuiNonModalDefaultProfile;
|
|
|
|
new GuiBitmapCtrl(OptionsMenuPrevNavIcon) {
|
|
BitmapAsset = "UI:Keyboard_Black_Q_image";
|
|
position = "0 10";
|
|
extent = "40 40";
|
|
profile = GuiNonModalDefaultProfile;
|
|
vertSizing = "top";
|
|
};
|
|
|
|
new GuiBitmapCtrl(OptionsMenuNextNavIcon) {
|
|
BitmapAsset = "UI:Keyboard_Black_E_image";
|
|
position = "0 10";
|
|
extent = "40 40";
|
|
profile = GuiNonModalDefaultProfile;
|
|
vertSizing = "top";
|
|
};
|
|
};
|
|
};
|
|
new GuiScrollCtrl(OptionsMenuSettingsScroll) {
|
|
hScrollBar = "alwaysOff";
|
|
vScrollBar = "dynamic";
|
|
position = "240 110";
|
|
extent = "800 573";
|
|
horizSizing = "center";
|
|
vertSizing = "height";
|
|
profile = "GuiMenuScrollProfile";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
|
|
new GuiStackControl(VideoSettingsList) {
|
|
padding = "5";
|
|
changeChildSizeToFit = "0";
|
|
position = "0 1";
|
|
extent = "800 200";
|
|
horizSizing = "width";
|
|
vertSizing = "height";
|
|
profile = "GuiDefaultProfile";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
};
|
|
new GuiStackControl(AudioSettingsList) {
|
|
padding = "5";
|
|
changeChildSizeToFit = "0";
|
|
position = "0 1";
|
|
extent = "800 200";
|
|
horizSizing = "width";
|
|
vertSizing = "height";
|
|
profile = "GuiDefaultProfile";
|
|
visible = "0";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
hidden = "1";
|
|
};
|
|
new GuiStackControl(ControlSettingsList) {
|
|
padding = "5";
|
|
changeChildSizeToFit = "0";
|
|
position = "0 1";
|
|
extent = "800 200";
|
|
horizSizing = "width";
|
|
vertSizing = "height";
|
|
profile = "GuiDefaultProfile";
|
|
visible = "0";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
hidden = "1";
|
|
};
|
|
};
|
|
new GuiPanel(OptionMenuTitlePanel) {
|
|
extent = "1281 60";
|
|
horizSizing = "width";
|
|
profile = "GuiMenuPanelProfile";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
|
|
new GuiTextCtrl() {
|
|
text = "OPTIONS";
|
|
position = "22 23";
|
|
extent = "220 28";
|
|
profile = "MenuHeaderText";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
};
|
|
};
|
|
new GuiPanel(OptionsMenuButtonPanel) {
|
|
position = "0 683";
|
|
extent = "1281 40";
|
|
horizSizing = "width";
|
|
vertSizing = "top";
|
|
profile = "GuiMenuPanelProfile";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
|
|
new GuiIconButtonCtrl(OptionsMenuBackBtn) {
|
|
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";
|
|
class = "MenuInputButton";
|
|
};
|
|
new GuiIconButtonCtrl(OptionsMenuResetBtn) {
|
|
BitmapAsset = "UI:Keyboard_Black_Return_image";
|
|
sizeIconToButton = "1";
|
|
makeIconSquare = "1";
|
|
textLocation = "Center";
|
|
text = "Reset";
|
|
position = "947 0";
|
|
extent = "140 40";
|
|
horizSizing = "left";
|
|
vertSizing = "center";
|
|
profile = "GuiMenuButtonProfile";
|
|
command = "OptionsMenu.resetSettings();";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
class = "MenuInputButton";
|
|
};
|
|
};
|
|
};
|
|
//--- OBJECT WRITE END ---
|