🔧
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
  1. Confirm Alert

Use Confirm Alert everywhere

PreviousConfirm AlertNextCreate your own theme

Last updated 1 year ago

  1. First of all open the settings menu widget of the theme that your are using.

  2. In its Design tab, copy the Confirm Alert widget (select it and Ctrl+C) and then delete the Confirm alert widget:

  3. Now you need to open another UI widget where you know that it is also visible everywhere where you want to use the Confirm Alert. If it's only placed (as default) in the Settings Menu widget, it's also only available when you have the settings menu open. But if you place it in your personal Game UI widget it will also be available outside the Settings Menu widget.

  4. Paste the Confrim alert widget that you copied in step 2 inside your Game UI. For this guide it's pasted inside the Pause Menu widget. In case you lost the clipboard you can also add a new confirm alert in your theme from the Palette.

  5. Open WB_Master_ConfirmAlert and in the Graph tab select the OnUpdated event dispatcher. There add a new variable to the event dispatcher and call it NormalModeShowConfirmAlert with the Type Name:

  6. Compile the blueprint. If you see some errors go to these nodes and right click on them and click Refresh Nodes. Then the errors should go away. If not, just restart your project.

  7. Adjust the Show And Update function as follows:

  8. Open AC_PC_NiceSettingsComponent and adjust the Show Confirm Alert function as follows (you also need to delte parts as you can see on the image):

  9. Open WB_Master_NSM_Button and a new variable called NormalModeShowConfirmAlert with the Type Name. Also make sure to set Instance Editable is set to true for this variable:

  10. Adjust the ExecuteAction function as follows. Make sure the variable you just created is connected with the Show Confirm Alert node:

  11. Now open the Confirm Alert widget of the theme that you're using. For this guide it's WB_T1_ConfirmAlert. In the Event Graph add something like this, there is already one name added to the switch that should handle the Quit question (example, you can add more or other pins to the switch node):

    The name connection comes from the Updated custom event a bith further to the left

  12. Let's also determine what should be excuted when pressing the Yes button. For that open WB_Master_NSM_Button and in the ExecuteAction function you can add something like this (it's for the quit example but you can add more or other pins to the switch here):

  13. Here is the example implementation for the Quit button. Set Show Confirm Alert to true and set the NormalModeShowConfirmAlert value:

đŸ–Ĩī¸
đŸ’ģ