19#ifndef HEADER_GHOST_REPLAY_SELECTION_HPP
20#define HEADER_GHOST_REPLAY_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"
53 std::string m_file_to_be_deleted;
54 std::vector<unsigned int> m_best_times_index;
55 bool m_same_difficulty;
60 bool m_active_mode_is_linear;
64 uint64_t m_replay_to_compare_uid;
66 irr::gui::STKModifiedSpriteBank *m_icon_bank;
76 irr::gui::STKModifiedSpriteBank* getIconBank() {
return m_icon_bank; }
80 void setCompareReplayUid(uint64_t uid) { m_replay_to_compare_uid = uid; }
81 void setCompare(
bool compare) { m_is_comparing = compare; }
83 void refresh(
bool forced_update =
true,
bool update_columns =
false);
88 void onDeleteReplay(std::string& filename);
92 const bool isActiveModeLinear() {
return m_active_mode_is_linear; }
99 const
int playerID) OVERRIDE;
104 virtual
void onColumnClicked(
int column_id,
bool sort_desc,
bool sort_default) OVERRIDE;
106 virtual
void init() OVERRIDE;
Declares a class to be a singleton.
Definition: screen.hpp:59
Represents a single GUI screen.
Definition: screen.hpp:97
GhostReplaySelection.
Definition: ghost_replay_selection.hpp:38
void loadList()
Load the addons into the main list.
Definition: ghost_replay_selection.cpp:192
int m_icon_unknown_kart
Icon for unknown karts.
Definition: ghost_replay_selection.hpp:69
GhostReplaySelection()
Constructor, which loads the stkgui file.
Definition: ghost_replay_selection.cpp:40
int m_icon_lock
Icon for locked replays.
Definition: ghost_replay_selection.hpp:71
virtual void onColumnClicked(int column_id, bool sort_desc, bool sort_default) OVERRIDE
Change the sort order if a column was clicked.
Definition: ghost_replay_selection.cpp:527
virtual void tearDown() OVERRIDE
Callback invoked before leaving this menu.
Definition: ghost_replay_selection.cpp:54
virtual void eventCallback(GUIEngine::Widget *widget, const std::string &name, const int playerID) OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: ghost_replay_selection.cpp:422
~GhostReplaySelection()
Destructor.
Definition: ghost_replay_selection.cpp:49
virtual bool onEscapePressed() OVERRIDE
Called when escape is pressed.
Definition: ghost_replay_selection.cpp:596
virtual void unloaded() OVERRIDE
Callback invoked when this screen is being unloaded.
Definition: ghost_replay_selection.cpp:60
void refresh(bool forced_update=true, bool update_columns=false)
Triggers a refresh of the replay file list.
Definition: ghost_replay_selection.cpp:70
void defaultSort()
Apply the default sorting to the replay list.
Definition: ghost_replay_selection.cpp:583
virtual void beforeAddingWidget() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: ghost_replay_selection.cpp:151
virtual void init() OVERRIDE
Callback invoked when entering this menu (after the widgets have been added).
Definition: ghost_replay_selection.cpp:172
virtual void onConfirm() OVERRIDE
Implement IConfirmDialogListener callback.
Definition: ghost_replay_selection.cpp:513
virtual void loadedFromFile() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: ghost_replay_selection.cpp:92
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
Difficulty
Game difficulty.
Definition: race_manager.hpp:230
Contains all GUI engine related classes and functions.
Definition: abstract_state_manager.hpp:33