19 #ifndef OPENXCOM_LISTGAMESSTATE_H
20 #define OPENXCOM_LISTGAMESSTATE_H
22 #include "../Engine/State.h"
23 #include "OptionsBaseState.h"
26 #include "../Savegame/SavedGame.h"
27 #include "../Engine/Options.h"
47 Text *_txtTitle, *_txtName, *_txtDate, *_txtDelete, *_txtDetails;
50 OptionsOrigin _origin;
52 std::vector<SaveInfo> _saves;
54 bool _autoquick, _sortable;
void updateArrows()
Updates the sorting arrows based on the current setting.
Definition: ListGamesState.cpp:209
Container for all the information associated with a given user action, like mouse clicks...
Definition: Action.h:34
A game state that receives user input and reacts accordingly.
Definition: State.h:44
Box with a coloured border and custom background.
Definition: Window.h:42
void btnCancelClick(Action *action)
Handler for clicking the Cancel button.
Definition: ListGamesState.cpp:276
List of Text's split into columns.
Definition: TextList.h:42
Text string displayed on screen.
Definition: Text.h:41
ListGamesState(Game *game, OptionsOrigin origin, int firstValidRow, bool autoquick)
Creates the Saved Game state.
Definition: ListGamesState.cpp:87
void sortNameClick(Action *action)
Handler for clicking the Name arrow.
Definition: ListGamesState.cpp:321
void disableSort()
disables the sort buttons.
Definition: ListGamesState.cpp:361
virtual ~ListGamesState()
Cleans up the Saved Game state.
Definition: ListGamesState.cpp:176
void lstSavesMouseOver(Action *action)
Handler for moving the mouse over a list item.
Definition: ListGamesState.cpp:285
virtual void updateList()
Updates the savegame list.
Definition: ListGamesState.cpp:258
Coloured button with a text label.
Definition: TextButton.h:40
void sortList(SaveSort sort)
Sorts the savegame list.
Definition: ListGamesState.cpp:234
Base class for saved game screens which provides the common layout and listing.
Definition: ListGamesState.h:42
void sortDateClick(Action *action)
Handler for clicking the Date arrow.
Definition: ListGamesState.cpp:343
The core of the game engine, manages the game's entire contents and structure.
Definition: Game.h:44
void lstSavesMouseOut(Action *action)
Handler for moving the mouse outside the list borders.
Definition: ListGamesState.cpp:300
SaveSort
Savegame sorting modes.
Definition: Options.h:35
virtual void lstSavesPress(Action *action)
Handler for clicking the Saves list.
Definition: ListGamesState.cpp:309
void init()
Sets up the saves list.
Definition: ListGamesState.cpp:184