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:210
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:277
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:88
void sortNameClick(Action *action)
Handler for clicking the Name arrow.
Definition: ListGamesState.cpp:322
void disableSort()
disables the sort buttons.
Definition: ListGamesState.cpp:362
virtual ~ListGamesState()
Cleans up the Saved Game state.
Definition: ListGamesState.cpp:177
void lstSavesMouseOver(Action *action)
Handler for moving the mouse over a list item.
Definition: ListGamesState.cpp:286
virtual void updateList()
Updates the savegame list.
Definition: ListGamesState.cpp:259
Coloured button with a text label.
Definition: TextButton.h:40
void sortList(SaveSort sort)
Sorts the savegame list.
Definition: ListGamesState.cpp:235
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:344
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:301
SaveSort
Savegame sorting modes.
Definition: Options.h:35
virtual void lstSavesPress(Action *action)
Handler for clicking the Saves list.
Definition: ListGamesState.cpp:310
void init()
Sets up the saves list.
Definition: ListGamesState.cpp:185
COPYING:
Definition: BaseInfoState.cpp:41