19#ifndef __HEADER_USER_SCREEN_HPP__
20#define __HEADER_USER_SCREEN_HPP__
24#include "guiengine/screen.hpp"
25#include "guiengine/widgets/spinner_widget.hpp"
26#include "input/input.hpp"
102 virtual void onUpdate(
float dt) OVERRIDE;
110 const std::
string& name, const
int playerID) OVERRIDE;
116 virtual
void init() OVERRIDE;
125 const core::stringw &online_name="",
126 const core::stringw &password="");
128 void loginError(const irr::core::stringw &error_message,
bool clear_password);
130 void logoutError(const irr::core::stringw &error_message);
134 const
unsigned int value,
135 Input::InputType type,
136 int playerId) OVERRIDE;
161 virtual void init() OVERRIDE;
163 const std::string& name,
const int playerID) OVERRIDE;
The user management screen.
Definition: user_screen.hpp:49
virtual GUIEngine::EventPropagation filterActions(PlayerAction action, int deviceID, const unsigned int value, Input::InputType type, int playerId) OVERRIDE
Override this if you need to be notified of player actions in subclasses.
Definition: user_screen.cpp:204
bool m_new_registered_data
Set to indicate when the sceen is initialised that new data from a registration are available,...
Definition: user_screen.hpp:89
void loginError(const irr::core::stringw &error_message, bool clear_password)
Callback from player profile if login was unsuccessful.
Definition: user_screen.cpp:602
void deletePlayer()
Called when a player will be deleted.
Definition: user_screen.cpp:653
GUIEngine::LabelWidget * m_info_widget
Label field for warning and error messages.
Definition: user_screen.hpp:78
UserScreenState
The state of the user screen.
Definition: user_screen.hpp:58
virtual void eventCallback(GUIEngine::Widget *widget, const std::string &name, const int playerID) OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: user_screen.cpp:331
GUIEngine::TextBoxWidget * m_username_tb
User name entry field.
Definition: user_screen.hpp:72
bool m_auto_login
Set from the register screen if the newly created account can be used directly without waiting to con...
Definition: user_screen.hpp:93
virtual void onUpdate(float dt) OVERRIDE
Called once every frame.
Definition: user_screen.cpp:570
void closeScreen()
Closes the BaseUserScreen, and makes sure that the right screen is displayed next.
Definition: user_screen.cpp:464
GUIEngine::DynamicRibbonWidget * m_players
The dynamic ribbon containing all players.
Definition: user_screen.hpp:84
void doDeletePlayer()
Callback when the user confirms to delete a player.
Definition: user_screen.cpp:693
GUIEngine::CheckBoxWidget * m_online_cb
Online check box.
Definition: user_screen.hpp:69
void logoutError(const irr::core::stringw &error_message)
Callback from player profile if login was unsuccessful.
Definition: user_screen.cpp:635
GUIEngine::RibbonWidget * m_options_widget
The ribbon with all buttons.
Definition: user_screen.hpp:81
virtual void init() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: user_screen.cpp:112
void login()
Called when OK or OK-and-save is clicked.
Definition: user_screen.cpp:482
void setNewAccountData(bool online, bool auto_login, const core::stringw &online_name="", const core::stringw &password="")
Stores information from the register screen.
Definition: user_screen.cpp:90
GUIEngine::TextBoxWidget * m_password_tb
Password widget.
Definition: user_screen.hpp:75
virtual void unloaded() OVERRIDE
implement optional callback from parent class GUIEngine::Screen
Definition: user_screen.cpp:717
virtual void beforeAddingWidget() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: user_screen.cpp:103
virtual void loadedFromFile() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: user_screen.cpp:62
void loginSuccessful()
Callback from player profile if login was successful.
Definition: user_screen.cpp:585
void logoutSuccessful()
Callback from player profile if logout was successful.
Definition: user_screen.cpp:623
void makeEntryFieldsVisible()
Make the entry fields either visible or invisible.
Definition: user_screen.cpp:288
irr::core::stringw m_sign_out_name
The user name that is currently being logged out.
Definition: user_screen.hpp:62
irr::core::stringw m_sign_in_name
The user name that is currently being logged out.
Definition: user_screen.hpp:66
void selectUser(int index)
Called when a user is selected.
Definition: user_screen.cpp:229
virtual void tearDown() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: user_screen.cpp:197
Declares a class to be a singleton.
Definition: screen.hpp:59
Represents a single GUI screen.
Definition: screen.hpp:97
A text field widget.
Definition: text_box_widget.hpp:53
Class for managing player profiles (name, usage frequency, etc.).
Definition: player_profile.hpp:54
Definition: user_screen.hpp:153
Definition: user_screen.hpp:142
Contains all GUI engine related classes and functions.
Definition: abstract_state_manager.hpp:33