Create A Custom Game Menu
In this section, you'll learn how to create a custom menu to show on the Popup Dialog device.
Follow these steps to create a custom menu:
-
Create a Widget Blueprint that's a Modal Dialog Variant named WBP_Dialog_One_Button_Intro.
-
Add a Size Box widget first then the Overlay widget as its child. The Size Box gives a panel for the Overlay widget to be positioned in.
-
In the Details panel of the Overlay widget, apply the following settings.
Option Value Explanation Padding 0.0, 0.0, 0.0, 40.0 This will add 40 pixel padding to the bottom of the widget. Horizontal Alignment Center Align Horizontally This aligns the widget in the middle of the screen. Vertical Alignment Bottom Align Vertically This aligns the widget to the bottom of the screen. -
In the Details panel of the Image widget, apply the following settings. Option Value Explanation Horizontal Alignment Fill Horizontally The widget will take up as much space as it can. Vertical Alignment Fill Vertically The widget will take up as much space as it can. Tint AE4200FF Hex sRGB Color for the background. Draw As Rounded Box This renders the image with rounded corners. Visibility Not Hit-Testable (Self Only) Only the button itself should be selectable in the UI.
-
In the Details panel of the UEFN Button Quiet widget, apply the following settings. Option Value Explanation Min Width 300 Set the width for the button. Min Height 48 Set the height for the button. Horizontal Alignment Fill Horizontally The widget will take up as much space as it can. Vertical Alignment Fill Vertically The widget will take up as much space as it can. Visibility Visible The button should be selectable in the UI. Text None Leave the Text setting blank because we're using a Text Block to create the custom text.
-
In the Details panel of the UEFN Text Block widget, apply the following settings. Option Value Explanation Horizontal Alignment Center Align Horizontally This aligns the widget in the middle of the container. Vertical Alignment Center Align Vertically This aligns the widget in the middle of the container. Text Button 1 Text Placeholder text. The View Bindings will replace the text here with the text in the Popup Dialog device's settings. Visibility Not Hit-Testable (Self Only) We don't want the text to hide the button from the user's interaction.
-
Click View Bindings in the Widget Editor.
-
Add the following bindings to the UEFN Button Quiet widget.
You're reading a preview
The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.
Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.