2019-08-29 00:22:33 -05:00
|
|
|
//--- OBJECT WRITE BEGIN ---
|
2023-12-17 03:27:30 -06:00
|
|
|
$guiContent = new GuiControl(OptionsMenu) {
|
2023-12-06 19:50:51 -06:00
|
|
|
extent = "1280 720";
|
|
|
|
|
minExtent = "8 8";
|
2022-05-06 23:39:16 -05:00
|
|
|
horizSizing = "width";
|
|
|
|
|
vertSizing = "height";
|
2023-12-17 03:27:30 -06:00
|
|
|
profile = "GuiMenuBackgroundProfile";
|
2023-12-16 23:18:33 -06:00
|
|
|
category = "BaseUI";
|
2023-12-06 19:50:51 -06:00
|
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
|
|
|
isContainer = "1";
|
2023-12-17 03:27:30 -06:00
|
|
|
canSaveDynamicFields = "0";
|
2019-08-29 00:22:33 -05:00
|
|
|
|
2023-12-16 23:18:33 -06:00
|
|
|
new GuiInputCtrl(OptionsMenuInputHandler) {
|
2023-12-06 19:50:51 -06:00
|
|
|
ignoreMouseEvents = "1";
|
2023-12-16 23:18:33 -06:00
|
|
|
ActionMap = "OptionsMenuActionMap";
|
|
|
|
|
position = "-50 0";
|
2023-12-06 19:50:51 -06:00
|
|
|
extent = "2186 851";
|
|
|
|
|
horizSizing = "width";
|
|
|
|
|
vertSizing = "height";
|
|
|
|
|
profile = "GuiInputCtrlProfile";
|
|
|
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
|
|
|
};
|
2023-12-16 23:18:33 -06:00
|
|
|
new GuiControl(OptionsMenuCategoryContainer) {
|
2023-12-17 03:27:30 -06:00
|
|
|
position = "0 60";
|
|
|
|
|
extent = "1280 49";
|
2023-12-06 19:50:51 -06:00
|
|
|
horizSizing = "center";
|
|
|
|
|
profile = "GuiDefaultProfile";
|
|
|
|
|
tooltipProfile = "GuiToolTipProfile";
|
2023-12-16 23:18:33 -06:00
|
|
|
isContainer = "1";
|
2020-05-20 17:19:52 -05:00
|
|
|
|
2023-12-16 23:18:33 -06:00
|
|
|
new GuiStackControl(OptionsMenuCategoryList) {
|
|
|
|
|
stackingType = "Horizontal";
|
|
|
|
|
padding = "10";
|
|
|
|
|
dynamicSize = "0";
|
2023-12-18 23:49:13 -06:00
|
|
|
position = "330 0";
|
|
|
|
|
extent = "650 40";
|
2023-12-16 23:18:33 -06:00
|
|
|
horizSizing = "center";
|
|
|
|
|
vertSizing = "center";
|
|
|
|
|
profile = "GuiDefaultProfile";
|
2023-12-06 19:50:51 -06:00
|
|
|
tooltipProfile = "GuiToolTipProfile";
|
2023-12-16 23:18:33 -06:00
|
|
|
|
|
|
|
|
new GuiButtonCtrl() {
|
|
|
|
|
text = "Video";
|
2023-12-17 03:27:30 -06:00
|
|
|
extent = "120 40";
|
2023-12-16 23:18:33 -06:00
|
|
|
profile = "GuiMenuButtonProfile";
|
2023-12-17 03:27:30 -06:00
|
|
|
command = "OptionsMenu.openOptionsCategory(\"Video\");";
|
2023-12-16 23:18:33 -06:00
|
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
|
|
|
};
|
|
|
|
|
new GuiButtonCtrl() {
|
|
|
|
|
text = "Audio";
|
2023-12-17 03:27:30 -06:00
|
|
|
position = "130 0";
|
|
|
|
|
extent = "120 40";
|
2023-12-16 23:18:33 -06:00
|
|
|
profile = "GuiMenuButtonProfile";
|
2023-12-17 03:27:30 -06:00
|
|
|
command = "OptionsMenu.openOptionsCategory(\"Audio\");";
|
2023-12-16 23:18:33 -06:00
|
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
|
|
|
};
|
|
|
|
|
new GuiButtonCtrl() {
|
2023-12-18 23:49:13 -06:00
|
|
|
text = "Keyboard/Mouse";
|
2023-12-17 03:27:30 -06:00
|
|
|
position = "260 0";
|
2023-12-18 23:49:13 -06:00
|
|
|
extent = "220 40";
|
|
|
|
|
profile = "GuiMenuButtonProfile";
|
|
|
|
|
command = "OptionsMenu.openOptionsCategory(\"KBM\");";
|
|
|
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
|
|
|
};
|
|
|
|
|
new GuiButtonCtrl() {
|
|
|
|
|
text = "Controller";
|
|
|
|
|
position = "480 0";
|
2023-12-17 03:27:30 -06:00
|
|
|
extent = "160 40";
|
2023-12-16 23:18:33 -06:00
|
|
|
profile = "GuiMenuButtonProfile";
|
2023-12-18 23:49:13 -06:00
|
|
|
command = "OptionsMenu.openOptionsCategory(\"Controller\");";
|
2023-12-16 23:18:33 -06:00
|
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
|
|
|
};
|
2023-12-06 19:50:51 -06:00
|
|
|
};
|
2023-12-17 03:27:30 -06:00
|
|
|
|
|
|
|
|
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";
|
|
|
|
|
};
|
|
|
|
|
};
|
2023-12-06 19:50:51 -06:00
|
|
|
};
|
|
|
|
|
new GuiScrollCtrl(OptionsMenuSettingsScroll) {
|
|
|
|
|
hScrollBar = "alwaysOff";
|
|
|
|
|
vScrollBar = "dynamic";
|
2023-12-17 03:27:30 -06:00
|
|
|
position = "240 110";
|
|
|
|
|
extent = "800 573";
|
2023-12-06 19:50:51 -06:00
|
|
|
horizSizing = "center";
|
|
|
|
|
vertSizing = "height";
|
|
|
|
|
profile = "GuiMenuScrollProfile";
|
|
|
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
|
|
|
|
|
|
|
|
new GuiStackControl(VideoSettingsList) {
|
2023-12-18 23:49:13 -06:00
|
|
|
class = "OptionsMenuList";
|
2023-12-06 19:50:51 -06:00
|
|
|
padding = "5";
|
|
|
|
|
changeChildSizeToFit = "0";
|
2023-12-17 03:27:30 -06:00
|
|
|
position = "0 1";
|
|
|
|
|
extent = "800 200";
|
2023-12-06 19:50:51 -06:00
|
|
|
horizSizing = "width";
|
|
|
|
|
vertSizing = "height";
|
|
|
|
|
profile = "GuiDefaultProfile";
|
|
|
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
|
|
|
};
|
|
|
|
|
new GuiStackControl(AudioSettingsList) {
|
2023-12-18 23:49:13 -06:00
|
|
|
class = "OptionsMenuList";
|
|
|
|
|
padding = "5";
|
|
|
|
|
changeChildSizeToFit = "0";
|
|
|
|
|
position = "0 1";
|
|
|
|
|
extent = "800 200";
|
|
|
|
|
horizSizing = "width";
|
|
|
|
|
vertSizing = "height";
|
|
|
|
|
profile = "GuiDefaultProfile";
|
|
|
|
|
visible = "0";
|
|
|
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
|
|
|
hidden = "1";
|
|
|
|
|
};
|
|
|
|
|
new GuiStackControl(KBMControlsList) {
|
|
|
|
|
class = "OptionsMenuList";
|
2023-12-06 19:50:51 -06:00
|
|
|
padding = "5";
|
|
|
|
|
changeChildSizeToFit = "0";
|
2023-12-17 03:27:30 -06:00
|
|
|
position = "0 1";
|
|
|
|
|
extent = "800 200";
|
2020-07-23 00:22:15 -05:00
|
|
|
horizSizing = "width";
|
2023-12-06 19:50:51 -06:00
|
|
|
vertSizing = "height";
|
2020-07-23 00:22:15 -05:00
|
|
|
profile = "GuiDefaultProfile";
|
2023-12-16 23:18:33 -06:00
|
|
|
visible = "0";
|
2020-07-23 00:22:15 -05:00
|
|
|
tooltipProfile = "GuiToolTipProfile";
|
2023-12-16 23:18:33 -06:00
|
|
|
hidden = "1";
|
2020-07-23 00:22:15 -05:00
|
|
|
};
|
2023-12-18 23:49:13 -06:00
|
|
|
new GuiStackControl(GamepadControlsList) {
|
|
|
|
|
class = "OptionsMenuList";
|
2023-12-06 19:50:51 -06:00
|
|
|
padding = "5";
|
|
|
|
|
changeChildSizeToFit = "0";
|
2023-12-17 03:27:30 -06:00
|
|
|
position = "0 1";
|
|
|
|
|
extent = "800 200";
|
2020-07-23 00:22:15 -05:00
|
|
|
horizSizing = "width";
|
2023-12-06 19:50:51 -06:00
|
|
|
vertSizing = "height";
|
2020-05-20 17:19:52 -05:00
|
|
|
profile = "GuiDefaultProfile";
|
2023-12-16 23:18:33 -06:00
|
|
|
visible = "0";
|
2020-05-20 17:19:52 -05:00
|
|
|
tooltipProfile = "GuiToolTipProfile";
|
2023-12-16 23:18:33 -06:00
|
|
|
hidden = "1";
|
2020-05-20 17:19:52 -05:00
|
|
|
};
|
2023-12-06 19:50:51 -06:00
|
|
|
};
|
|
|
|
|
new GuiPanel(OptionMenuTitlePanel) {
|
2023-12-17 03:27:30 -06:00
|
|
|
extent = "1281 60";
|
2023-12-06 19:50:51 -06:00
|
|
|
horizSizing = "width";
|
|
|
|
|
profile = "GuiMenuPanelProfile";
|
|
|
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
|
|
|
|
2022-02-17 18:21:13 -06:00
|
|
|
new GuiTextCtrl() {
|
|
|
|
|
text = "OPTIONS";
|
2023-12-06 19:50:51 -06:00
|
|
|
position = "22 23";
|
2023-12-27 01:36:58 -06:00
|
|
|
extent = "1281 28";
|
2022-02-17 18:21:13 -06:00
|
|
|
profile = "MenuHeaderText";
|
2020-05-20 17:19:52 -05:00
|
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
|
|
|
};
|
2023-12-06 19:50:51 -06:00
|
|
|
};
|
2023-12-16 23:18:33 -06:00
|
|
|
new GuiPanel(OptionsMenuButtonPanel) {
|
2023-12-06 19:50:51 -06:00
|
|
|
position = "0 683";
|
|
|
|
|
extent = "1281 40";
|
|
|
|
|
horizSizing = "width";
|
|
|
|
|
vertSizing = "top";
|
|
|
|
|
profile = "GuiMenuPanelProfile";
|
|
|
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
|
|
|
|
2023-12-16 23:18:33 -06:00
|
|
|
new GuiIconButtonCtrl(OptionsMenuBackBtn) {
|
2023-12-06 19:50:51 -06:00
|
|
|
BitmapAsset = "UI:Keyboard_Black_Escape_image";
|
|
|
|
|
sizeIconToButton = "1";
|
|
|
|
|
makeIconSquare = "1";
|
|
|
|
|
textLocation = "Center";
|
|
|
|
|
text = "Back";
|
|
|
|
|
position = "16 0";
|
|
|
|
|
extent = "140 40";
|
2023-12-16 23:18:33 -06:00
|
|
|
vertSizing = "center";
|
|
|
|
|
profile = "GuiMenuButtonProfile";
|
2023-12-27 01:36:58 -06:00
|
|
|
command = "tryCloseOptionsMenu(1);";
|
2023-12-16 23:18:33 -06:00
|
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
|
|
|
class = "MenuInputButton";
|
|
|
|
|
};
|
2023-12-31 12:46:48 -06:00
|
|
|
new GuiIconButtonCtrl(OptionsMenuRemapBtn) {
|
|
|
|
|
BitmapAsset = "UI:Keyboard_Black_Space_image";
|
|
|
|
|
sizeIconToButton = "1";
|
|
|
|
|
makeIconSquare = "1";
|
|
|
|
|
textLocation = "Center";
|
|
|
|
|
text = "Remap";
|
|
|
|
|
position = "850 0";
|
|
|
|
|
extent = "140 40";
|
|
|
|
|
horizSizing = "left";
|
|
|
|
|
vertSizing = "center";
|
|
|
|
|
profile = "GuiMenuButtonProfile";
|
|
|
|
|
command = "OptionsMenuActivateOption(1)";
|
|
|
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
|
|
|
class = "MenuInputButton";
|
|
|
|
|
};
|
|
|
|
|
new GuiIconButtonCtrl(OptionsMenuApplyBtn) {
|
2023-12-16 23:18:33 -06:00
|
|
|
BitmapAsset = "UI:Keyboard_Black_Return_image";
|
|
|
|
|
sizeIconToButton = "1";
|
|
|
|
|
makeIconSquare = "1";
|
|
|
|
|
textLocation = "Center";
|
2023-12-31 12:46:48 -06:00
|
|
|
text = "Apply";
|
|
|
|
|
position = "990 0";
|
|
|
|
|
extent = "140 40";
|
|
|
|
|
horizSizing = "left";
|
|
|
|
|
vertSizing = "center";
|
|
|
|
|
profile = "GuiMenuButtonProfile";
|
|
|
|
|
command = "OptionsMenu.applyChangedOptions();";
|
|
|
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
|
|
|
class = "MenuInputButton";
|
|
|
|
|
};
|
|
|
|
|
new GuiIconButtonCtrl(OptionsMenuResetBtn) {
|
|
|
|
|
BitmapAsset = "UI:Keyboard_Black_R_image";
|
|
|
|
|
sizeIconToButton = "1";
|
|
|
|
|
makeIconSquare = "1";
|
|
|
|
|
textLocation = "Center";
|
2023-12-16 23:18:33 -06:00
|
|
|
text = "Reset";
|
2023-12-18 23:49:13 -06:00
|
|
|
position = "1135 0";
|
2023-12-16 23:18:33 -06:00
|
|
|
extent = "140 40";
|
2023-12-06 19:50:51 -06:00
|
|
|
horizSizing = "left";
|
|
|
|
|
vertSizing = "center";
|
|
|
|
|
profile = "GuiMenuButtonProfile";
|
2023-12-16 23:18:33 -06:00
|
|
|
command = "OptionsMenu.resetSettings();";
|
2020-05-20 17:19:52 -05:00
|
|
|
tooltipProfile = "GuiToolTipProfile";
|
2023-12-06 19:50:51 -06:00
|
|
|
class = "MenuInputButton";
|
2022-02-17 18:21:13 -06:00
|
|
|
};
|
2020-05-20 17:19:52 -05:00
|
|
|
};
|
2019-08-29 00:22:33 -05:00
|
|
|
};
|
|
|
|
|
//--- OBJECT WRITE END ---
|