coastline 0.0.4
Loading...
Searching...
No Matches
MultiplayerGameSetupUI Class Reference

Multiplayer race-setup callbacks using the shared session and cached connection screens. More...

#include <frontend.h>

Static Public Member Functions

static int OnEscape (MenuWidget *pWidget)
 Exit an active network game launched through a lobby.
static int OnCycleCarClass (MenuWidget *pWidget)
 Cycle car classes 0..4 using mouse edges and apply the selected car-group preset.
static int OnBackAsClient (MenuActionWidget *pItem)
 Return a client to session selection, disconnect, and restore provider discovery when needed.
static int OnBackAsHost (MenuActionWidget *pItem)
 Return a host to game creation, disconnect, and restore provider discovery when needed.

Detailed Description

Multiplayer race-setup callbacks using the shared session and cached connection screens.

Car-class selection and host/client exit callbacks for multiplayer setup.

Member Function Documentation

◆ OnEscape()

int MultiplayerGameSetupUI::OnEscape ( MenuWidget * pWidget)
static

Exit an active network game launched through a lobby.

Parameters
pWidgetA non-null borrowed widget of the active screen to stop before exit.
Returns
One when application shutdown is not requested.
Ghidra address:
BRD3D: 0x100437d0
Ghidra address:
BRGlide: 0x1003cd20

◆ OnCycleCarClass()

int MultiplayerGameSetupUI::OnCycleCarClass ( MenuWidget * pWidget)
static

Cycle car classes 0..4 using mouse edges and apply the selected car-group preset.

An active DirectPlay interface also receives a selection notice.

Parameters
pWidgetThe unused widget pointer, possibly null.
Returns
One.
Ghidra address:
BRD3D: 0x10044600
Ghidra address:
BRGlide: 0x1003db50

◆ OnBackAsClient()

int MultiplayerGameSetupUI::OnBackAsClient ( MenuActionWidget * pItem)
static

Return a client to session selection, disconnect, and restore provider discovery when needed.

Lobby-launched sessions exit the application instead.

Parameters
pItemA non-null active-screen widget, invalidated by screen destruction or shutdown.
Returns
Zero when control returns, ending the current widget update.
Ghidra address:
BRD3D: 0x10044970
Ghidra address:
BRGlide: 0x1003dec0

◆ OnBackAsHost()

int MultiplayerGameSetupUI::OnBackAsHost ( MenuActionWidget * pItem)
static

Return a host to game creation, disconnect, and restore provider discovery when needed.

Lobby-launched sessions exit the application instead.

Parameters
pItemA non-null active-screen widget, invalidated by screen destruction or shutdown.
Returns
Zero when control returns, ending the current widget update.
Ghidra address:
BRD3D: 0x10044a30
Ghidra address:
BRGlide: 0x1003df80

The documentation for this class was generated from the following file: