The mode of the UI element. These should be unique.
Private
arrowPrivate
arrowProtected
cursorPrivate
Optional
exitA callback invoked when clear
is called
Private
gameThe game data to display
Private
gamePrivate
headerLogged in username
Protected
modePrivate
statPrivate
statsPrivate
statPrivate
Static
Readonly
ROWS_The number of rows enabled per page.
Private
colTHe width of a column's background window
Private
columnThe number of columns used by this menu in the resolved language
Private
colThe with of each column in the stats view
Private
maxThe maximum cursor position
Private
singleWhether the UI is single column mode
Private
statsThe number of stats on screen at one time (varies with column count)
Private
calcCalculate the y
position of the stat label/text based on its index.
The index of the stat label
The y
position for the stat label
Private
calcCalculate the x
position of the stat label based on its index.
The index of the stat label
The x
position for the stat label
Should be used for stat labels (e.g. stat name, not its value). For stat value, use calcTextX
.
Private
calcCalculate the x
position of the stat value based on its index.
The index of the stat value
The calculated x
position
To be implemented by individual handlers when necessary to free memory Called when BattleScene is reset
Private
getReturns the username of logged in user. If the username is hidden, the trainer name based on gender will be displayed.
The username of logged in user
Set the cursor to the specified position, if able and update the stats display.
The position to set the cursor to.
Whether the cursor successfully moved to a new position
If newCursor
is not between 0
and maxCursorPos
, or if it is the same as newCursor
then no updates happen and false
is returned.
Otherwise, updates the up/down arrow visibility and calls updateStats
Protected
setChanges the style of the mouse cursor.
cursor style to apply
Private
update
A basic abstract class to act as a holder and processor for UI elements.