The mode of the UI element. These should be unique.
PrivatearrowPrivatearrowProtectedcursorPrivate OptionalexitA callback invoked when clear is called
PrivategameThe game data to display
PrivategamePrivateheaderLogged in username
ProtectedmodePrivatestatPrivatestatsPrivatestatPrivate Static ReadonlyROWS_The number of rows enabled per page.
PrivatecolTHe width of a column's background window
PrivatecolumnThe number of columns used by this menu in the resolved language
PrivatecolThe with of each column in the stats view
PrivatemaxThe maximum cursor position
PrivatesingleWhether the UI is single column mode
PrivatestatsThe number of stats on screen at one time (varies with column count)
PrivatecalcCalculate 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
PrivatecalcCalculate 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.
PrivatecalcCalculate 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
PrivategetReturns 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
ProtectedsetChanges the style of the mouse cursor.
cursor style to apply
Privateupdate
A basic abstract class to act as a holder and processor for UI elements.