create_win_menu_widget
Build a UMG victory screen widget with a centered win message, optional restart and quit buttons, and round number display. Configure text, colors, and content folder for the Unreal Editor.
Instructions
Create a Win/Victory screen Widget Blueprint as described in Ch. 8.
Creates a UMG Widget with a centered win message and buttons. From the book: "You Win!" message, Restart and Quit buttons.
Args: widget_name: Widget Blueprint name title_text: Main message (e.g., "You Win!", "Victory!") title_color: RGBA color for the title text show_restart_button: Include a Restart (reload level) button show_quit_button: Include a Quit Game button show_round_info: Include current round number display folder_path: Content browser folder
KB: see knowledge_base/06_UI_UMG_SYSTEMS.md#overview Example: create_win_menu_widget()
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title_text | No | You Win! | |
| folder_path | No | /Game/UI | |
| title_color | No | ||
| widget_name | No | WBP_WinMenu | |
| show_round_info | No | ||
| show_quit_button | No | ||
| show_restart_button | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |