19#ifndef HEADER_PLAYER_RANKINGS_DIALOG_HPP
20#define HEADER_PLAYER_RANKINGS_DIALOG_HPP
22#include "guiengine/modaldialog.hpp"
32 class IconButtonWidget;
46 const uint32_t m_online_id;
48 const core::stringw m_name;
52 std::shared_ptr<RankingCallback> m_ranking_callback;
64 static std::vector<std::tuple<int, core::stringw,
70 void fillTopTenList();
79 void onEnterPressedInternal() { m_self_destroy =
true; }
81 GUIEngine::EventPropagation
processEvent(
const std::string& source);
85 m_self_destroy =
true;
Abstract base class representing a modal dialog.
Definition: modaldialog.hpp:56
Dialog that handle user in network lobby.
Definition: player_rankings_dialog.hpp:44
virtual void onUpdate(float dt)
Override to be notified of updates.
Definition: player_rankings_dialog.cpp:137
GUIEngine::EventPropagation processEvent(const std::string &source)
Returns whether to block event propagation (usually, you will want to block events you processed)
Definition: player_rankings_dialog.cpp:160
virtual void beforeAddingWidgets()
Optional callback invoked very early, before widgets have been added (contrast with init(),...
Definition: player_rankings_dialog.cpp:59
virtual bool onEscapePressed()
Override to change what happens on escape pressed.
Definition: player_rankings_dialog.hpp:83
void updateTopTenList()
Definition: player_rankings_dialog.cpp:77
Definition: ranking_callback.hpp:31
Contains all GUI engine related classes and functions.
Definition: abstract_state_manager.hpp:33
Declares the general types that are used by the network.