Skip to main content

StartGame widgets

Overview​

The Start Game Widgets system is a modular UI framework that appears at the beginning of each board game session. It allows players to configure game modes, select seats, choose teams/characters, and confirm their selections before the game starts.

The system follows a sequential flow where players navigate through different selection screens using a master widget (UAOBStartGameWidget) that contains a WidgetSwitcher to manage the different selection steps.

Flow Order​

  1. Mode Selection - Choose the game mode (e.g., Solo, Competitive, Cooperative)
  2. Modifier Selection - Enable/disable game modifiers or variants
  3. Seat Selection - Choose a player seat position
  4. Team/Character Selection - Select team or character assignment
  5. Confirmation - Review all players and their selections, then start the game
tip

Note: Not all games require every step. Some games may skip Mode or Modifier selection, and others combine Seat and Team selection into a single widget.


Widget classes​

Widget Architecture​

Class Hierarchy​

UUserWidget
├── UAOBStartGameWidget (Master Widget)
├── UAOBModeSelectorWidget
├── UAOBModifierSelectorWidget
├── UAOBSelectSeatWidget
│ └── UAOBSelectSeatTeamWidget (Combined Seat + Team)
├── UAOBSelectTeamWidget
├── UAOBSelectRoleWidget
├── UAOBConfirmSelectionWidget
├── UAOBSelectButton
├── UAOBSelectCheckbox
├── UAOBStartGamePlayerWidget
├── UAOBDescriptionWidget
└── UAOBStartGameConfirmationWidget

Actor Container​

AAOBStartGameActor is the world actor that hosts and manages the Start Game widgets. It contains multiple UWidgetComponent slots for:

  • Main Start Game Widget
  • Players List
  • Mode Description
  • Seat Description
  • Team Description

UAOBStartGameWidget (Master Widget)​

The master container widget that orchestrates the entire Start Game flow.

Required Bound Widgets​

Widget NameTypeBindingDescription
WidgetSwitcherUWidgetSwitcherBindWidgetContainer that holds and switches between selection widgets
ModeSelectorWidgetUAOBModeSelectorWidgetBindWidgetOptionalFirst mode selector (if game has modes)
SecondModeSelectorWidgetUAOBModeSelectorWidgetBindWidgetOptionalSecond mode selector (for games with two mode choices)
SelectRoleWidgetUAOBSelectRoleWidgetBindWidgetOptionalRole/character selection widget
SelectSeatWidgetUAOBSelectSeatWidgetBindWidgetOptionalSeat position selection widget
SelectTeamWidgetUAOBSelectTeamWidgetBindWidgetOptionalTeam selection widget
ConfirmSelectionWidgetUAOBConfirmSelectionWidgetBindWidgetOptionalFinal confirmation and player list widget

Slash/Progress Indicator Widgets (Optional)​

These widgets display visual progress through the selection steps:

Widget NameTypeDescription
LashImageMode / LashTextModeUImage / UTextBlockMode step indicator
LashImageSecondMode / LashTextSecondModeUImage / UTextBlockSecond mode step indicator
LashImageSeat / LashTextSeatUImage / UTextBlockSeat step indicator
LashImageChar / LashTextCharUImage / UTextBlockCharacter/Team step indicator

Blueprint Configurable Properties​

PropertyTypeCategoryDescription
PlayingGameRulesStateFNameGameRulesThe game rules state to transition to when the start flow completes. If empty, the game rules state won't change.
SlashUnselectedBrushFSlateBrushSlashStyleVisual style for unselected progress indicators
SlashSelectedBrushFSlateBrushSlashStyleVisual style for completed progress indicators
SlashActiveBrushFSlateBrushSlashStyleVisual style for the currently active progress indicator

Blueprint Implementable Events​

  • BP_OnSeatSelected(Index) - Called when a seat is selected
  • BP_OnTeamSelected(Index) - Called when a team is selected
  • BP_ChangeSelection(bIsDummy) - Called when changing selection (for dummy players)
  • BP_PreStartGame() - Called before the game starts

Delegates​

  • OnJoinGameDelegate - Fired when player joins the game
  • OnTryStartGameDelegate - Fired when attempting to start the game
  • OnModeSelectedDelegate - Fired when a mode is selected
  • OnSeatSelectedDelegate - Fired when a seat is selected
  • OnModifierChangedDelegate - Fired when a modifier value changes
  • OnSeatChangedDelegate - Fired when seat assignment changes
  • OnTeamSelectedDelegate - Fired when a team is selected
  • OnWidgetChangedDelegate - Fired when switching between widgets
  • OnSummaryReachedDelegate - Fired when reaching the confirmation screen

UAOBModeSelectorWidget​

Widget for selecting game modes (e.g., Solo, Competitive, Cooperative).

Required Bound Widgets​

Widget NameTypeBindingDescription
ConfirmButtonUAOBButtonBaseBindWidgetButton to confirm mode selection
BackButtonUAOBButtonBaseBindWidgetOptionalButton to go back to previous step
ModesOverlayUOverlayBindWidgetContainer for mode selection buttons
ModesSwitcherUWidgetSwitcherBindWidgetOptionalAlternative switcher-based mode display
RightButton / LeftButtonUAOBButtonBaseBindWidgetOptionalNavigation buttons for switcher mode
ClientWaitTextUTextBlockBindWidgetText shown to non-host clients while waiting

Blueprint Configurable Properties​

PropertyTypeDescription
bShowDescriptionboolWhether to show a description widget when a mode is selected

Blueprint Implementable Events​

  • BP_OnModeButtonPressed(Index) - Called when a mode button is pressed
  • BP_OnModeDeploy(Index) - Called when a mode is deployed/confirmed

Delegates​

  • OnConfirmModeDelegate - Fired when mode selection is confirmed
  • OnModeSelectedDelegate - Fired when a mode is selected (before confirmation)

UAOBModifierSelectorWidget​

Widget for enabling/disabling game modifiers or variants.

Required Bound Widgets​

Widget NameTypeBindingDescription
ConfirmButtonUAOBButtonBaseBindWidgetButton to confirm modifier selection
BackButtonUAOBButtonBaseBindWidgetOptionalButton to go back
ModifiersOverlayUOverlayBindWidgetContainer for modifier checkboxes
ClientWaitTextUTextBlockBindWidgetText shown to non-host clients while waiting
ClientWaitText_1UTextBlockBindWidgetOptionalAdditional wait text (optional)

Blueprint Implementable Events​

  • BP_OnModifierButtonChanged(Index, bIsChecked) - Called when a modifier checkbox state changes
  • BP_GetModifierNotebookKey(Index) - Returns the notebook key for a modifier index

Delegates​

  • OnConfirmModifiersDelegate - Fired when modifiers are confirmed
  • OnModifierChangedDelegate - Fired when any modifier value changes

UAOBSelectSeatWidget​

Widget for selecting a player seat position.

Required Bound Widgets​

Widget NameTypeBindingDescription
ConfirmSeatButtonUAOBButtonBaseBindWidgetButton to confirm seat selection
SpectatorButtonUAOBButtonBaseBindWidgetButton to join as spectator
BackButtonUAOBButtonBaseBindWidgetOptionalButton to go back
WarningBorderUBorderBindWidgetContainer for warning messages
WarningTextUTextBlockBindWidgetText display for warnings
OverlayUOverlayBindWidgetContainer for seat selection buttons

Blueprint Configurable Properties​

PropertyTypeDescription
SoloModeSeatIDint32The seat ID to auto-select in solo mode (default: 2)
WaitingTextFTextText displayed while waiting for seat assignment
FailSelectTextFTextText displayed when seat selection fails

Delegates​

  • OnConfirmSeatButtonPressedDelegate - Fired when seat is confirmed
  • OnSeatButtonPressedDelegate - Fired when a seat button is pressed
  • OnSpectatorButtonPressedDelegate - Fired when spectator button is pressed
  • OnBackButtonPressedDelegate - Fired when back button is pressed
  • OnSeatChangedDelegate - Fired when seat assignment changes

UAOBSelectSeatTeamWidget​

Combined widget for selecting both seat and team simultaneously. Extends UAOBSelectSeatWidget.

This widget is used when games require seat and team to be selected together (e.g., each seat belongs to a specific team).

info

Uses UAOBSelectSeatAndTeamButton instead of regular UAOBSelectButton for combined seat+team selection.


UAOBSelectTeamWidget​

Widget for selecting a team (when separate from seat selection).

Required Bound Widgets​

Widget NameTypeBindingDescription
ConfirmTeamButtonUAOBButtonBaseBindWidgetButton to confirm team selection
BackButtonUAOBButtonBaseBindWidgetButton to go back
ButtonsPanelWidgetUPanelWidgetBindWidgetContainer for team selection buttons
WarningBorderUBorderBindWidgetContainer for warning messages
WarningTextUTextBlockBindWidgetText display for warnings

Blueprint Configurable Properties​

PropertyTypeDescription
WaitingTextFTextText displayed while waiting for team assignment
FailSelectTextFTextText displayed when team selection fails

Delegates​

  • OnTeamButtonPressedDelegate - Fired when a team button is pressed
  • OnConfirmTeamButtonPressedDelegate - Fired when team is confirmed
  • OnBackButtonPressedDelegate - Fired when back button is pressed

UAOBSelectRoleWidget​

Widget for selecting a character role.

Required Bound Widgets​

Widget NameTypeBindingDescription
Overlay_ButtonsUOverlayBindWidgetContainer for role selection buttons
Button_SpectatorUAOBButtonBaseBindWidgetButton to join as spectator
Button_ConfirmUAOBButtonBaseBindWidgetButton to confirm role selection
Button_BackUAOBButtonBaseBindWidgetButton to go back

Blueprint Readable Properties​

  • PlayerName (FName) - Current player's name
  • bIsDummy (bool) - Whether selecting for a dummy player
  • DummyCount (int32) - Number of dummy players

Blueprint Implementable Events​

  • BP_OnRoleConfirmed(SelectedRole) - Called when a role is confirmed

Delegates​

  • OnButtonSpectatorPressedDelegate - Fired when spectator button is pressed
  • OnButtonBackPressedDelegate - Fired when back button is pressed
  • OnButtonConfirmPressedDelegate - Fired when confirm button is pressed

UAOBConfirmSelectionWidget​

Final widget showing all players, their selections, and game start controls.

Required Bound Widgets​

Widget NameTypeBindingDescription
PlayerListContentUPanelWidgetBindWidgetOptionalContainer for player list items
TopTextUTextBlockBindWidgetHeader text
TopTextWaitingUTextBlockBindWidgetText shown while waiting for other players
WarningTextUTextBlockBindWidgetWarning message display
WarningMarginBoxUSizeBoxBindWidgetContainer for warning layout
ReadyButtonUAOBButtonBaseBindWidgetButton to toggle ready state
StartGameButtonUAOBButtonBaseBindWidgetButton to start the game (host only)
JoinGameButtonUAOBButtonBaseBindWidgetButton to join an in-progress game
ChangeSelectionButtonUAOBButtonBaseBindWidgetButton to go back and change selections
AddDummyButtonUAOBButtonBaseBindWidgetButton to add a dummy player
WarningBoxUHorizontalBoxBindWidgetContainer for warning UI
ButtonsSwitcherUWidgetSwitcherBindWidgetSwitches between Ready/Start button states
StartWaitSwitcherUWidgetSwitcherBindWidgetSwitches between Start and Waiting states

Delegates​

  • OnStartGameButtonPressedDelegate - Fired when start game is pressed
  • OnTryStartGameButtonPressedDelegate - Fired when attempting to start
  • OnJoinGameButtonPressedDelegate - Fired when join game is pressed
  • OnChangeSelectionButtonPressedDelegate - Fired when change selection is pressed
  • OnReadyChangedDelegate - Fired when ready state changes

Support Widgets​

UAOBSelectButton​

Reusable button widget for selection options.

Blueprint Configurable Properties​

PropertyTypeDescription
bAlwaysDisableboolIf true, button is always disabled
Indexint32Index identifier for this button
TextFTextDisplay text for the button
bShowPlayerNameboolWhether to show player name on button
PressedSoundFSlateSoundSound to play when pressed
HoveredSoundFSlateSoundSound to play when hovered

UAOBSelectCheckbox​

Checkbox widget for modifier toggles.

Blueprint Configurable Properties​

PropertyTypeDescription
Indexint32Index identifier for this checkbox
ImageUTexture2D*Icon image for the modifier
TitleFTextTitle text for the modifier
DescriptionFTextDescription text for the modifier

UAOBStartGamePlayerWidget​

Widget representing a single player in the confirmation list.

Blueprint Configurable Properties​

PropertyTypeCategoryDescription
SeatIconsTArray<FSlateBrush>ConfigIcons for each seat position
CharIconsTArray<FSlateBrush>-Icons for each character/team
NotReadyIconFSlateBrushConfigIcon shown when player is not ready
ReadyIconFSlateBrushConfigIcon shown when player is ready
SpectatorIconFSlateBrushConfigIcon shown for spectators
DummyIconFSlateBrushConfigIcon shown for dummy players

Blueprint Implementable Events​

  • SetupFinished() - Called after setup is complete
  • BP_SetCharText(Index) - Called to set character text display

UAOBDescriptionWidget​

Widget for displaying descriptions of modes, seats, or teams.

Blueprint Implementable Events​

  • BP_OnSelected(Index) - Called when a selection is made to update the description

AAOBStartGameActor​

The actor that hosts all Start Game widgets in the world.

Blueprint Configurable Components​

ComponentTypeDescription
SceneRootComponentUSceneComponentRoot component
SessionConfigWidgetCompUWidgetComponentSession configuration widget
StartGameWidgetCompUAOBDialogSpawnerWidgetComponentMain start game widget
PlayersListWidgetCompUWidgetComponentPlayers list display
ModeDescriptionWidgetCompUWidgetComponentMode description display
GameDescriptionWidgetCompUWidgetComponentGame description display
SeatDescriptionWidgetCompUWidgetComponentSeat description display
TeamDescriptionWidgetCompUWidgetComponentTeam description display
StartGameConfirmationWidgetClassTSubclassOf<UUserWidget>Widget class for start game confirmation dialog

Blueprint Implementable Events​

  • BO_OnJoin() - Called when the player joins the game

Implementation Guide​

The Game Creation Wizard is responsible for creating the basic widgets needed to configure a StartGame with a selection of seats and teams.

TODO (from Notion): link pending.

In the configuration, if we select "Has Team Selection," a seat selector and a team selector will be created. If we do not select this option, a seat selector will be created and the team will be assigned to the seat.

StartGame seat and team selectors created by the wizard

These widgets are created together with an Actor already configured to contain those widgets. BP_002TBI_StartGameActor

These widgets are created with a basic format for AllOnBoard!, so you will need to modify their appearance to display the icons for the game you are creating.

Adding Mode Selector​

The Mode Selector Widget is a widget that contains buttons that, when pressed, trigger an event with the button index, which we then use to configure the mode in its Event Graph.

  • Find the base WBP for the ModeSelector WBP_000AOB_ModeSelector in Content/AOB/Core/UI/StartGame/

  • Copy and paste it in your game UI/StartGame folder Content/AOB/BoardGames/002TBI/UI/StartGame/ and rename it with your game ID: WBP_002TBI_ModeSelector

  • This widget has 2 mode selection buttons pre configured

    ModeSelector widget with two mode buttons

  • If you need to add or remode game modes you can replace the "GameMode_EmptyButton" with a Mode button by copying and renaming it (we are using the WBP_000AOB_SelectSeatButton).

    Replacing GameMode_EmptyButton with a Mode button

  • In the button details you have to change his index to the next free index and you can change the Button text under the AOBSelect Button section

    Changing the button index in the AOBSelect Button section

  • In EventGraph, the selector is configured for two modes called "Mode1" and "Mode2." Here, you must add a pin for each game mode button and set the "GameMode" variable to the name of the game mode you want to assign to that button.

    Mode selector Event Graph with a pin per game mode

  • We configure the names of the modes in the "CustomKeys" MacroLibrary of the games. Here we add a macro for each game mode under the "Modes" category and configure those macros to return the name of the mode we want. This way, whenever we want to check the game mode, we can use these macros to return the name of the mode directly.

    CustomKeys MacroLibrary Modes category

    CustomKeys macro configuration

    CustomKeys macro configuration

    CustomKeys macro configuration

  • Finally, we open the general StartGame widget and add the ModeSelector to the WidgetSwitcher. This must be placed above the Seat selection, as it is the first selector that must appear before allowing all players to choose their seats.

    Adding the ModeSelector to the WidgetSwitcher

Adding Modifier Selector​

The modifier selector widget is a widget designed to activate optional features in a game. It has checkboxes designed to enable or disable these features.

  • Find the base WBP for the ModifierSelector WBP_000AOB_ModifierSelector in Content/AOB/Core/UI/StartGame/

  • Copy and paste it in your game UI/StartGame folder Content/AOB/BoardGames/002TBI/UI/StartGame/ and rename it with your game ID: WBP_002TBI_ModifierSelector

  • This widget has 2 modifier selection checkbox pre configured

    ModifierSelector widget with two checkboxes

  • You can remove or add more WBP_000AOB_ModifierCheckbox as you wish. You can also modify the appearance of the widget as long as the checkboxes are inside the ModifiersOverlay.

  • In the CheckBox Details, under the AOBSelect Checkbox section you can configure the checkbox Index, Title and Description. It is importat to set a diferent index for all modifiers.

AOBSelect Checkbox Index, Title and Description

  • In the EventGraph you can read the event "BPOnModifierButtonChanged" or Bind "OnCheckModified" event from the checkboxes to detect when the checkbox has changed. This widget notify internally the game rules notebook to change the status of the modifier, this events are used to managa the widget behavior.

Modifier selector Event Graph handling checkbox changes

  • In the "UpdateConfirmButton" function we are managing when the ConfirmButton availability.

UpdateConfirmButton function

  • In the "BP_GetModifierNotebookKey" you must set the Modifier name keys created in the "CustomKeys" Macro Library, and asociate to his index.

BP_GetModifierNotebookKey with the modifier name keys

  • To finish, open the StartGame main Widget and add the Modifier widget to the widget switcher, this widget is placed between the Mode Selectors and the Seat selector.

    Adding the Modifier widget to the widget switcher

  • You can add as much modifier widgets as you wish.