19 #ifndef __HEADER_ONLINE_PROFILE_ACHIEVEMENTS_HPP__
20 #define __HEADER_ONLINE_PROFILE_ACHIEVEMENTS_HPP__
23 #include <irrString.h>
25 #include "achievements/achievement.hpp"
26 #include "guiengine/screen.hpp"
27 #include "guiengine/widgets/list_widget.hpp"
28 #include "states_screens/online/online_profile_base.hpp"
45 int m_selected_achievement_index;
46 bool m_waiting_for_achievements;
70 virtual
void eventCallback(
GUIEngine::Widget* widget, const std::
string& name, const
int playerID) OVERRIDE;
73 virtual
void init() OVERRIDE;
75 virtual
void onUpdate(
float delta) OVERRIDE;
78 virtual
void onColumnClicked(
int column_id,
bool sort_desc,
bool sort_default) OVERRIDE;
81 virtual
void refreshAchievementsList()
83 m_waiting_for_achievements =
true;
Definition: achievement.hpp:42
Online profiel overview screen.
Definition: online_profile_achievements.hpp:40
virtual void beforeAddingWidget() OVERRIDE
Callback before widgets are added.
Definition: online_profile_achievements.cpp:74
virtual void eventCallback(GUIEngine::Widget *widget, const std::string &name, const int playerID) OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: online_profile_achievements.cpp:124
bool goalSort(Achievement *a, Achievement *b)
True if a's goal progression is <= to b's.
Definition: online_profile_achievements.cpp:277
virtual void init() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: online_profile_achievements.cpp:94
void displayResults()
Displays the achievements from a given profile.
Definition: online_profile_achievements.cpp:180
BaseOnlineProfileAchievements(const std::string &filename)
Constructor.
Definition: online_profile_achievements.cpp:50
virtual void onUpdate(float delta) OVERRIDE
Called every frame.
Definition: online_profile_achievements.cpp:309
virtual void loadedFromFile() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: online_profile_achievements.cpp:62
bool progressSort(Achievement *a, Achievement *b)
True if a's single-goal progress is <= to b's.
Definition: online_profile_achievements.cpp:290
int m_sort_column
Which column to use for sorting.
Definition: online_profile_achievements.hpp:49
Declares a class to be a singleton.
Definition: screen.hpp:59
Online profiel overview screen.
Definition: online_profile_achievements.hpp:111
Online profile base screen.
Definition: online_profile_base.hpp:37
Online profiel overview screen.
Definition: online_profile_achievements.hpp:94
Contains all GUI engine related classes and functions.
Definition: abstract_state_manager.hpp:33