Network car-setup callbacks for chat, player selection, readiness, and session transitions.
More...
#include <frontend.h>
|
| static int | PollChatListSelection (MenuWidget *pWidget) |
| | Draw and process the chat list without storing a newly activated row index.
|
| static int | SendChatMessage (MenuWidget *pWidget) |
| | Copy primary text into the shared chat buffer, send it, and clear both text buffers.
|
| static int | OnBootPlayer (MenuWidget *pWidget) |
| | Send a removal request for the selected player unless the selection is the local player.
|
| static int | OnRefreshSessionDesc (MenuWidget *pWidget) |
| | Query session readiness and send a start request for a ready host or toggle client readiness.
|
| static int | OnEscape (MenuWidget *pWidget) |
| | Process network escape, lobby return, host readiness, or the pending race-start transition.
|
| static int | UpdateSelectedPlayer (MenuWidget *pWidget) |
| | Process player-list selection and read the selected row's application data as its player ID.
|
Network car-setup callbacks for chat, player selection, readiness, and session transitions.
Shared DirectPlay state and required menu references must be initialised before use.
◆ PollChatListSelection()
| int NetworkCarSetupUI::PollChatListSelection |
( |
MenuWidget * | pWidget | ) |
|
|
static |
Draw and process the chat list without storing a newly activated row index.
- Parameters
-
| pWidget | A non-null borrowed widget with the chat list. |
- Returns
- One.
- Ghidra address:
- BRD3D: 0x1003ebc0
- Ghidra address:
- BRGlide: 0x100381b0
◆ SendChatMessage()
| int NetworkCarSetupUI::SendChatMessage |
( |
MenuWidget * | pWidget | ) |
|
|
static |
Copy primary text into the shared chat buffer, send it, and clear both text buffers.
- Parameters
-
| pWidget | A non-null borrowed entry widget with terminated primary text of at most 200 bytes, copied into the 201-byte chat buffer without a capacity check. |
- Returns
- One without propagating the chat-send result.
- Ghidra address:
- BRD3D: 0x1003f170
- Ghidra address:
- BRGlide: 0x100386b0
◆ OnBootPlayer()
| int NetworkCarSetupUI::OnBootPlayer |
( |
MenuWidget * | pWidget | ) |
|
|
static |
Send a removal request for the selected player unless the selection is the local player.
- Parameters
-
| pWidget | The unused widget pointer, possibly null. |
- Returns
- One.
- Ghidra address:
- BRD3D: 0x100437b0
- Ghidra address:
- BRGlide: 0x1003cd00
◆ OnRefreshSessionDesc()
| int NetworkCarSetupUI::OnRefreshSessionDesc |
( |
MenuWidget * | pWidget | ) |
|
|
static |
Query session readiness and send a start request for a ready host or toggle client readiness.
Missing peers and unready host selections produce chat feedback. Session-query and network-send failures are not propagated to the caller.
- Parameters
-
| pWidget | The unused widget pointer, possibly null. |
- Returns
- One, including when no session description is available.
- Ghidra address:
- BRD3D: 0x10043a00
- Ghidra address:
- BRGlide: 0x1003cf50
◆ OnEscape()
| int NetworkCarSetupUI::OnEscape |
( |
MenuWidget * | pWidget | ) |
|
|
static |
Process network escape, lobby return, host readiness, or the pending race-start transition.
Lobby-launched active streams exit the application; accepted race starts save menu choices.
- Parameters
-
| pWidget | A non-null active-screen widget, potentially invalidated by a menu transition. |
- Returns
- Zero after a menu or race transition; one when continuing the current setup screen.
- Ghidra address:
- BRD3D: 0x10043810
- Ghidra address:
- BRGlide: 0x1003cd60
◆ UpdateSelectedPlayer()
| int NetworkCarSetupUI::UpdateSelectedPlayer |
( |
MenuWidget * | pWidget | ) |
|
|
static |
Process player-list selection and read the selected row's application data as its player ID.
- Parameters
-
| pWidget | A non-null borrowed player-list widget with a valid selected row index. |
- Returns
- One.
- Ghidra address:
- BRD3D: 0x1003ebe0
- Ghidra address:
- BRGlide: 0x100381d0
The documentation for this class was generated from the following file: