The user management screen. More...
#include <user_screen.hpp>
The user management screen.
The screen cames in two variations: either as a stand-alone screen before the main menu (on first time STK is started, or it the user is not remembered), but also as tab in the options menu. To implement this, we use one common base class that implements nearly all functionality, and derive to classes - one for the stand alone version, one for the version with tabs.
The state of the user screen.
Note that this is a bit mask, since the current user can be logged out, and the new one logged in at the same time.
Callback when the user confirms to delete a player.
This function actually deletes the player, discards the dialog, and re-initialised the BaseUserScreen to display only the available players.
implement callback from parent class GUIEngine::Screen
Called when the user selects anything on the screen.
Implements GUIEngine::Screen.
Reimplemented in TabbedUserScreen.
implement callback from parent class GUIEngine::Screen
Initialises the user screen.
Searches for all players to fill the list of users with their icons, and initialises all widgets for the current user (e.g. the online flag etc).
Reimplemented from GUIEngine::Screen.
Reimplemented in TabbedUserScreen.
Called when OK or OK-and-save is clicked.
This will trigger the actual login (if requested) etc.
Callback from player profile if login was unsuccessful.
Callback from player profile if login was unsuccessful.
Make the entry fields either visible or invisible.
Called once every frame.
It will replace this screen with the main menu screen if a successful login happened.
Reimplemented from GUIEngine::Screen.
Called when a user is selected.
It updates the online checkbox and entry fields.
Stores information from the register screen.
It allows this screen to use the entered user name and password to prefill fields so that the user does not have to enter them again.
Set from the register screen if the newly created account can be used directly without waiting to confirm the account.
Label field for warning and error messages.
Set to indicate when the sceen is initialised that new data from a registration are available, and therefore entry fields are not all cleared.
Online check box.
The ribbon with all buttons.
Password widget.
The dynamic ribbon containing all players.
The user name that is currently being logged out.
Used to display more meaningful sign-out message.
The user name that is currently being logged out.
Used to display more meaningful sign-out message.
User name entry field.