19#ifndef HEADER_SPLITSCREEN_PLAYER_DIALOG_HPP
20#define HEADER_SPLITSCREEN_PLAYER_DIALOG_HPP
22#include "guiengine/modaldialog.hpp"
34 class IconButtonWidget;
51 std::vector<PlayerProfile*> m_available_players;
71 :
ModalDialog(0.8f,0.8f), m_device(device), m_self_destroy(
false)
80 void onEnterPressedInternal() { m_self_destroy =
true; }
82 GUIEngine::EventPropagation
processEvent(
const std::string& source);
86 m_self_destroy =
true;
95 ModalDialog::dismiss();
Abstract base class representing a modal dialog.
Definition: modaldialog.hpp:56
void loadFromFile(const char *xmlFile)
Load a XML file to create the dialog from.
Definition: modaldialog.cpp:69
ModalDialog(const float percentWidth, const float percentHeight, ModalDialogLocation location=MODAL_DIALOG_LOCATION_CENTER)
Creates a modal dialog with given percentage of screen width and height.
Definition: modaldialog.cpp:54
Class for managing player profiles (name, usage frequency, etc.).
Definition: player_profile.hpp:54
Dialog that handle user in network lobby.
Definition: splitscreen_player_dialog.hpp:45
virtual void onUpdate(float dt)
Override to be notified of updates.
Definition: splitscreen_player_dialog.hpp:90
GUIEngine::EventPropagation processEvent(const std::string &source)
Returns whether to block event propagation (usually, you will want to block events you processed)
Definition: splitscreen_player_dialog.cpp:104
virtual void beforeAddingWidgets()
Optional callback invoked very early, before widgets have been added (contrast with init(),...
Definition: splitscreen_player_dialog.cpp:43
virtual bool onEscapePressed()
Override to change what happens on escape pressed.
Definition: splitscreen_player_dialog.hpp:84
Contains all GUI engine related classes and functions.
Definition: abstract_state_manager.hpp:33
Declares the general types that are used by the network.