wavelength 1.0.0
Loading...
Searching...
No Matches
NetSortedLaunchpadsList Class Reference

List of launchpads sorted or found by the player. More...

#include <netsortedlaunchpadslist.h>

Inheritance diagram for NetSortedLaunchpadsList:
Collaboration diagram for NetSortedLaunchpadsList:

Public Member Functions

 NetSortedLaunchpadsList (DataArray *pData, const char *pszPanel)
 Construct a list from its script description.
 ~NetSortedLaunchpadsList () override
 Destroy the list.
void UpdateCursor () override
 Move the cursor, show the selected launchpad on fn_sorted_pic, and request its players.
void ScrollUp () override
 Select the previous launchpad, or request the previous page from the first one.
void ScrollDown () override
 Select the next launchpad, or request the next page from the last one.
Public Member Functions inherited from NetMainLaunchpadsList
 NetMainLaunchpadsList (DataArray *pData, const char *pszPanel)
 Construct a list from its script description.
 ~NetMainLaunchpadsList () override
 Destroy the list.
void UpdateRow (int nRow, int nItem) override
 Show the status, the mode, the difficulty, the connection, the power-ups, and the artist of a launchpad in a row, in grey for a launchpad that cannot be joined and in cyan for a remix.
bool HandleJoypad (JoypadInputMsg *pMsg) override
 Choose the selected launchpad for NetJoinLPadScreen with the cross button, then handle the button as a list does.
void SetLaunchpads (std::list< NetLaunchpadInfo > *pLaunchpads, int nSelected)
 Replace the launchpads and select one.
Public Member Functions inherited from FreqList
 ~FreqList () override=default
 Destroy the object.
 FreqList (DataArray *pData, const char *pszPanel)
 Construct the list from its script description.
Public Member Functions inherited from UIList
 UIList (DataArray *pData, const char *pszPanel)
 Construct a list from its script description, cloning the template row once for each row.
 ~UIList () override
 Destroy the row clones and every object cloned with them.
bool DispatchPriv (Message *pMsg) override
 Pass a controller button to HandleJoypad().
void Print (PrnStream &stream) override
 Write a description of the list.
virtual void SetCursorSelected (bool bSelected)
 Give the cursor the material of the selected or of the normal state.
RndView * CloneRow (int nRow, RndView *pTemplate)
 Clone the template row for one row.
void BuildRowCells (RndView *pRow)
 Record the cells of a row, emptying each text and hiding each mesh.
void SetCellMat (int nRow, int nColumn, RndMat *pMat)
 Show the mesh of a cell with a material.
void SetCellText (int nRow, int nColumn, const char *pszText)
 Set the text of a cell.
void SetCellFont (int nRow, int nColumn, RndFont *pFont)
 Set the font of a cell's text.
void SetRowFont (int nRow, RndFont *pFont)
 Set the font of every text of a row.
void SetSelected (int nSelected)
 Select an item, keeping the number of items.
void Refresh (int nItemCount, int nSelected)
 Set the number of items and the selection, and fill the rows.
int GetSelected () const
int GetItemCount () const
int GetRowCount () const
RndMesh * GetUpArrow () const
RndMesh * GetDownArrow () const
void SetShowUpArrow (int nShow)
void SetShowDownArrow (int nShow)
Public Member Functions inherited from UIComponent
 UIComponent (DataArray *pData)
 Construct a showing component in the normal state.
bool Dispatch (Message *pMsg) override
 Offer a message to the focused panel of the current screen, then handle it here.
virtual bool IsShowing () const
 Report whether the component is showing.
virtual void SetShowing (bool bShowing)
 Show or hide the component.
virtual const char * Text () const
 Report the text the component shows.
virtual void SetText (const char *pszText)
 Replace the text the component shows.
virtual int GetState () const
 Report the state the component shows.
virtual void SetState (int nState, bool bForce)
 Change the state the component shows.
virtual void Focus ()
 React to the panel giving the component the focus.
virtual void Unfocus ()
 React to the panel taking the focus away.
virtual void Poll (float fTime)
 Advance the component to a time.
const char * GetName () const
int GetShowing () const
Public Member Functions inherited from MsgSink
void * operator new (size_t nSize)
 Allocate a sink from the pool heaps under the tag "MsgSink".
void operator delete (void *pBlock)
 Return a sink to the pool heaps.
virtual ~MsgSink ()
void * operator new (size_t size)
 Allocate from the main heap under the name MsgSink.
void operator delete (void *mem)
 Return memory to its heap.
virtual ~MsgSink ()
 Destroy the sink.

Static Public Member Functions

static UIComponent * New (DataArray *pData, const char *pszPanel)
 Create a list from its script description.
Static Public Member Functions inherited from NetMainLaunchpadsList
static UIComponent * New (DataArray *pData, const char *pszPanel)
 Create a list from its script description.
Static Public Member Functions inherited from UIList
static UIComponent * New (DataArray *pData, const char *pszPanel)
 Create a list from its script description.
Static Public Member Functions inherited from UIComponent
static void Init (DataArray *pConfig)
 Read the parameters of the flash a button shows when it is chosen.

Additional Inherited Members

Public Types inherited from UIComponent
enum  State { kStateNormal = 0 , kStateSelected = 1 , kStateDisabled = 2 }
 The state a component shows, the values of mState and the index UIStyle selects with. More...
Static Public Attributes inherited from UIList
static constexpr int kKeepSelection = -99999
 The value of Refresh()'s selection that keeps the selected item.
Protected Attributes inherited from NetMainLaunchpadsList
std::list< NetLaunchpadInfo > mLaunchpads
Protected Attributes inherited from UIList
UIStyle * mStyle
int mItemCount
int mRowCount
int mColumnCount
int mCursorRow
int mSelected
int mRowPitch
std::list< std::vector< Cell > > mRowCells
std::vector< RndView * > mRows
std::vector< RndText * > mTextCells
const char * mPanelName
RndMesh * mCursor
RndMesh * mUpArrow
RndMesh * mDownArrow
Transform mCursorXfm
int mShowUpArrow
int mShowDownArrow
Protected Attributes inherited from UIComponent
const char * mName
int mShowing
int mState
Static Protected Attributes inherited from UIComponent
static int sNumFlashes
 Number of times a chosen button flashes before it reports the choice.
static float sSelectedMs
 Milliseconds of each flash a chosen button spends in the selected state.
static float sNormalMs
 Milliseconds of each flash a chosen button spends in the normal state.

Detailed Description

List of launchpads sorted or found by the player.

The chosen launchpad shows on the fn_sorted_pic panel, and scrolling past either end requests the previous or the next page from NetSortedLaunchpadsPanel.

The RTTI records the class as deriving from NetMainLaunchpadsList. Its vtable is at 0x003cf598.

Constructor & Destructor Documentation

◆ NetSortedLaunchpadsList()

NetSortedLaunchpadsList::NetSortedLaunchpadsList ( DataArray * pData,
const char * pszPanel )
inline

Construct a list from its script description.

Parameters
pDataThe script description.
pszPanelThe name of the panel the list belongs to.
Ghidra address:
NTSC-U/C: 0x0019cff8
Ghidra address:
PAL: 0x001a4d10

◆ ~NetSortedLaunchpadsList()

NetSortedLaunchpadsList::~NetSortedLaunchpadsList ( )
inlineoverride

Destroy the list.

Ghidra address:
NTSC-U/C: 0x00360618
Ghidra address:
PAL: 0x003ceb30

Member Function Documentation

◆ New()

UIComponent * NetSortedLaunchpadsList::New ( DataArray * pData,
const char * pszPanel )
inlinestatic

Create a list from its script description.

The metagame registers the routine for the component type sorted_launchpads_list_comp.

Parameters
pDataThe script description.
pszPanelThe name of the panel the list belongs to.
Returns
The new list.
Ghidra address:
NTSC-U/C: 0x00360740
Ghidra address:
PAL: 0x003cec58

◆ UpdateCursor()

void NetSortedLaunchpadsList::UpdateCursor ( )
overridevirtual

Move the cursor, show the selected launchpad on fn_sorted_pic, and request its players.

Ghidra address:
NTSC-U/C: 0x0019d030
Ghidra address:
PAL: 0x001a4d48

Reimplemented from NetMainLaunchpadsList.

◆ ScrollUp()

void NetSortedLaunchpadsList::ScrollUp ( )
overridevirtual

Select the previous launchpad, or request the previous page from the first one.

Ghidra address:
NTSC-U/C: 0x0019d108
Ghidra address:
PAL: 0x001a4e20

Reimplemented from FreqList.

◆ ScrollDown()

void NetSortedLaunchpadsList::ScrollDown ( )
overridevirtual

Select the next launchpad, or request the next page from the last one.

Ghidra address:
NTSC-U/C: 0x0019d158
Ghidra address:
PAL: 0x001a4e70

Reimplemented from FreqList.


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