wavelength 1.0.0
Loading...
Searching...
No Matches
netrankedplayerslist.h
Go to the documentation of this file.
1#pragma once
2
4#include "script/dataarray.h"
5
13public:
24 NetRankedPlayersList(DataArray *pData, const char *pszPanel);
25
37 static UIComponent *New(DataArray *pData, const char *pszPanel) {
38 return new NetRankedPlayersList(pData, pszPanel);
39 }
40
48
57 void UpdateRow(int nRow, int nItem) override;
58
65 void UpdateCursor() override;
66
74 void SetCursorSelected(bool bSelected) override;
75
82 void ScrollUp() override;
83
90 void ScrollDown() override;
91};
Reference-counted array of script data nodes.
Definition dataarray.h:20
NetMainPlayersList(DataArray *pData, const char *pszPanel)
Construct a list from its script description.
void UpdateRow(int nRow, int nItem) override
Show the rank and the name of a player in a row, or clear the row past the last player.
~NetRankedPlayersList() override
Clear the Freq of fn_rank_p and destroy the list.
void ScrollUp() override
Select the previous player, or request the previous page from the first player.
void ScrollDown() override
Select the next player, or request the next page from the last player.
void UpdateCursor() override
Move the cursor and show the details and the Freq of the selected player.
NetRankedPlayersList(DataArray *pData, const char *pszPanel)
Construct a list from its script description.
static UIComponent * New(DataArray *pData, const char *pszPanel)
Create a list from its script description.
Definition netrankedplayerslist.h:37
void SetCursorSelected(bool bSelected) override
Show or hide the cursor and the text fn_rank_p_01.txt.
One control of a front-end panel, such as a label, a button, or a list.
Definition uicomponent.h:21