🔧
Nice Settings Menu
  • 👋Welcome - Nice Settings Menu Documentation
  • 🔌Integration in your project
  • 🎮Key Mapping / Binding
    • 🎮Enhanced Input System
    • 🎮Old Input System
    • âŒ¨ī¸Key conflict settings (use same keys for inputs)
  • đŸ–ąī¸Nice Navigation System
    • đŸ–ąī¸Navigation Input Modes
    • đŸ–ąī¸Use outside of settings/pause menu
  • 📖Use Settings Menu in Main Menu
  • đŸŸĻSettings Menu widget
  • â¸ī¸Pause Menu widget
  • â¯ī¸Pause Menu - Set Game Paused
  • đŸ”ŗSettings Section
  • đŸ“ĻSettings Category Button
  • 🔹Different Setting Types
    • đŸŸĻOption Switcher
    • đŸŸĻToggler
    • đŸŸĻSlider
    • đŸŸĻKey Mapper
  • â†Šī¸Change setting default values
  • đŸ—ƒī¸Setting Presets with Overall Switcher
  • 🔊Audio/Sound Volume adjustments
  • đŸ–ąī¸Mouse Cursor Visibility on leaving Pause Menu
  • 🔅Add Lumen Setting
  • đŸ–Ĩī¸Confirm Alert
    • đŸ’ģUse Confirm Alert everywhere
  • đŸ“ēCreate your own theme
  • đŸ–ąī¸Sensitivity Mouse & Gamepad
  • âœˆī¸Seamless Server Travel
  • Disable the FPS counter
  • 🌍Localization / Languages
  • Troubleshooting: No inputs
  • Troubleshooting: Save/Load not working
  • âŦ†ī¸Update Guides
    • 🔃Update From v1.0 to v1.1
  • 🐞Bug Fixes
Powered by GitBook
On this page
  • How to use in a Settings Menu widget
  • Special case: Use as Overall Option Switcher
  • Special case: Use for Screen Resolution Selection and Window Mode
  1. Different Setting Types

Option Switcher

PreviousDifferent Setting TypesNextToggler

Last updated 1 year ago

How to use in a Settings Menu widget

You can add an Option Switcher to a Settings Section. It can be WB_T0_OptionSwitcher, WB_T1_OptionSwitcher, WB_T2_OptionSwitcher, WB_T3_OptionSwitcher or another theme if you created your own theme.

If you have added the widget you can select it in Design tab of your Settings Menu. Then you can adjust it in the details tab:

As all Different Setting Typeswidgets make sure to set the right SettingsSectionID, more info in Settings Section

Special case: Use as Overall Option Switcher

This can be used to create setting presets. An Overall Option Switcher can override other setting selections. Besides the normal Option Names that you can add there is one more option that is there for a state where no preset is selected. By default it's called 'Custom' but can change this name if you want. If the Custom mode is selected all other settings that were overridden by the preset are no longer overriden an can be adjusted individually. In case the OptionSwitcher is in a non-custom mode (so overriding other settings) and you change the selection or value of one these overridden settings it will put the related Overall Option Switcher to custom mode.

To create an Overall Option Switcher you need to add a new OptionSwitcher to your settings menu. In the details tab you just need to tick Is Overall Switcher:

If you want this Overall Option Switcher to be in the custom mode by default. Just set the Default Option Index to -2

Set the SettingsOverallAdjustID In the Use As Overall Switcher section and in all setting widgets that should be influenced you need to go in the Details tab to the Affcted by Overall Switcher section and set Affected by overall settings to true and set the SettingsOverallAdjustID to the same as you did it for the Overall Option Switcher. In the affected setting widgets you can also define a value or selection that should be set for each selection that you made in the Overall Switcher.

Special case: Use for Screen Resolution Selection and Window Mode

In the existing themes as for example WB_T1_SettingsMenu you can have a look how an implemented solution looks like. However, below you can find the explanation.

It is not necessary to add Option Names because you can add automatically all from unreal returned supported fullscreen resolutions if you select the option switcher and in the details tab you can set 'Add All Supported Screen Resolutions' to true.

But you can add own Resolution Options too. Just make sure that the format of the Options that you add to the 'Option Names' array is important. It must be [number]x[number]

Example: 1920x1080

As default option it makes sense to choose -3 . If you do that your OptionSwitcher selection should appear as [user desktop resolution].

Doing this selects the individual screen resolution by default. So if a person has 4K monitor and starts the game it will set the screen resolution to 4K. Another person using a 1080p Monitor will get applied 1920x1080 then.

The option switcher details could look like this:

But adding only the OptionSwitcher has no effect yet. You need to connect this with another OptionSwitcher for the Window Mode. This can be set up like this:

Then you need to add the On Applied Event for these two OptionSwitchers which you can also do from the details tab if you scroll to the bottom.

In your EventGraph you now need to do an implementation like this:

🔹
đŸŸĻ