19#ifndef HEADER_ACHIEVEMENT_PROGRESS_DIALOG_HPP
20#define HEADER_ACHIEVEMENT_PROGRESS_DIALOG_HPP
22#include "achievements/achievement.hpp"
23#include "guiengine/modaldialog.hpp"
31 class IconButtonWidget;
60 core::stringw niceGoalName(std::string internal_name);
70 void onEnterPressedInternal() { m_self_destroy =
true; }
72 GUIEngine::EventPropagation
processEvent(
const std::string& source);
76 m_self_destroy =
true;
Dialog that shows an achievement description and progress.
Definition: achievement_progress_dialog.hpp:42
virtual void onUpdate(float dt)
Override to be notified of updates.
Definition: achievement_progress_dialog.cpp:350
GUIEngine::EventPropagation processEvent(const std::string &source)
Returns whether to block event propagation (usually, you will want to block events you processed)
Definition: achievement_progress_dialog.cpp:362
virtual void beforeAddingWidgets()
Optional callback invoked very early, before widgets have been added (contrast with init(),...
Definition: achievement_progress_dialog.cpp:326
virtual bool onEscapePressed()
Override to change what happens on escape pressed.
Definition: achievement_progress_dialog.hpp:74
virtual void init()
Optional callback invoked after widgets have been add()ed.
Definition: achievement_progress_dialog.cpp:336
Definition: achievement.hpp:42
Abstract base class representing a modal dialog.
Definition: modaldialog.hpp:56
Contains all GUI engine related classes and functions.
Definition: abstract_state_manager.hpp:33
Definition: achievement_info.hpp:53
Declares the general types that are used by the network.