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

Player-name editing, continuation, and root-menu return callbacks. More...

#include <frontend.h>

Static Public Member Functions

static int EnableContinueIfNameEntered (MenuWidget *pWidget)
 Enable continuing after a player name has been entered.
static int OnToggleTextEdit (MenuWidget *pWidget)
 Begin text editing and toggle the primary caret when no menu text edit is active.
static int OnBack (MenuActionWidget *pItem)
 Destroy player-name entry, clear its references, and restore the root menu.

Detailed Description

Player-name editing, continuation, and root-menu return callbacks.

Member Function Documentation

◆ EnableContinueIfNameEntered()

int PlayerNameEntryUI::EnableContinueIfNameEntered ( MenuWidget * pWidget)
static

Enable continuing after a player name has been entered.

Parameters
pWidgetA non-null borrowed name-entry widget with terminated primary text.
Returns
One; empty text preserves the Continue widget's previous enabled state.
Ghidra address:
BRD3D: 0x1003ef60
Ghidra address:
BRGlide: 0x10038490

◆ OnToggleTextEdit()

int PlayerNameEntryUI::OnToggleTextEdit ( MenuWidget * pWidget)
static

Begin text editing and toggle the primary caret when no menu text edit is active.

Parameters
pWidgetA non-null borrowed widget with primary text storage.
Returns
One, including when editing was already active.
Ghidra address:
BRD3D: 0x10042a90
Ghidra address:
BRGlide: 0x1003bff0

◆ OnBack()

int PlayerNameEntryUI::OnBack ( MenuActionWidget * pItem)
static

Destroy player-name entry, clear its references, and restore the root menu.

Parameters
pItemA non-null active-screen widget, invalidated when its panels are destroyed.
Returns
Zero to end the current widget update.
Ghidra address:
BRD3D: 0x10043fc0
Ghidra address:
BRGlide: 0x1003d510

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