19#ifndef HEADER_HIGH_SCORE_SELECTION_HPP
20#define HEADER_HIGH_SCORE_SELECTION_HPP
22#include "guiengine/screen.hpp"
23#include "guiengine/widgets.hpp"
24#include "race/race_manager.hpp"
25#include "states_screens/dialogs/message_dialog.hpp"
47 bool m_active_mode_is_linear;
53 irr::gui::STKModifiedSpriteBank *m_icon_bank;
63 irr::gui::STKModifiedSpriteBank* getIconBank() {
return m_icon_bank; }
67 void refresh(
bool forced_update =
true,
bool update_columns =
false);
72 void onDeleteHighscores();
74 void onClearHighscores();
78 const bool isActiveModeLinear() {
return m_active_mode_is_linear; }
85 const
int playerID) OVERRIDE;
90 virtual
void onColumnClicked(
int column_id,
bool sort_desc,
bool sort_default) OVERRIDE;
92 virtual
void init() OVERRIDE;
Declares a class to be a singleton.
Definition: screen.hpp:59
Represents a single GUI screen.
Definition: screen.hpp:97
HighScoreSelection.
Definition: high_score_selection.hpp:38
virtual void loadedFromFile() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: high_score_selection.cpp:98
void defaultSort()
Apply the default sorting to the high score list.
Definition: high_score_selection.cpp:425
virtual void beforeAddingWidget() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: high_score_selection.cpp:131
virtual void onColumnClicked(int column_id, bool sort_desc, bool sort_default) OVERRIDE
Change the sort order if a column was clicked.
Definition: high_score_selection.cpp:391
int m_icon_lock
Icon for locked replays.
Definition: high_score_selection.hpp:58
void refresh(bool forced_update=true, bool update_columns=false)
Triggers a refresh of the high score list.
Definition: high_score_selection.cpp:72
void loadList()
Load the addons into the main list.
Definition: high_score_selection.cpp:183
virtual void onConfirm() OVERRIDE
Implement IConfirmDialogListener callback.
Definition: high_score_selection.cpp:365
HighScoreSelection()
Constructor, which loads the stkgui file.
Definition: high_score_selection.cpp:44
virtual void unloaded() OVERRIDE
Callback invoked when this screen is being unloaded.
Definition: high_score_selection.cpp:63
virtual void init() OVERRIDE
Callback invoked when entering this menu (after the widgets have been added).
Definition: high_score_selection.cpp:164
int m_icon_unknown_kart
Icon for unknown karts.
Definition: high_score_selection.hpp:56
virtual void eventCallback(GUIEngine::Widget *widget, const std::string &name, const int playerID) OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: high_score_selection.cpp:278
virtual void tearDown() OVERRIDE
Callback invoked before leaving this menu.
Definition: high_score_selection.cpp:57
~HighScoreSelection()
Destructor.
Definition: high_score_selection.cpp:52
Listener interface to get notified of whether the user chose to confirm or cancel.
Definition: message_dialog.hpp:39
MinorRaceModeType
Minor variants to the major types of race.
Definition: race_manager.hpp:110
MajorRaceModeType
The major types or races supported in STK.
Definition: race_manager.hpp:93
Contains all GUI engine related classes and functions.
Definition: abstract_state_manager.hpp:33