19 #ifndef HEADER_SPLITSCREEN_PLAYER_DIALOG_HPP 20 #define HEADER_SPLITSCREEN_PLAYER_DIALOG_HPP 22 #include "guiengine/modaldialog.hpp" 25 #include <irrString.h> 34 class IconButtonWidget;
51 std::vector<PlayerProfile*> m_available_players;
71 : ModalDialog(0.8f,0.8f), m_device(device), m_self_destroy(
false)
73 loadFromFile(
"online/splitscreen_player_dialog.stkgui");
78 virtual void beforeAddingWidgets();
80 void onEnterPressedInternal() { m_self_destroy =
true; }
82 GUIEngine::EventPropagation processEvent(
const std::string& source);
86 m_self_destroy =
true;
95 ModalDialog::dismiss();
Contains all GUI engine related classes and functions.
Definition: abstract_state_manager.hpp:31
virtual void onUpdate(float dt)
Override to be notified of updates.
Definition: splitscreen_player_dialog.hpp:90
Declares the general types that are used by the network.
Class for managing player profiles (name, usage frequency, etc.).
Definition: player_profile.hpp:53
Dialog that handle user in network lobby.
Definition: splitscreen_player_dialog.hpp:44
virtual bool onEscapePressed()
Override to change what happens on escape pressed.
Definition: splitscreen_player_dialog.hpp:84
Abstract base class representing a modal dialog.
Definition: modaldialog.hpp:55