20 #include "../Engine/State.h" 21 #include "OptionsBaseState.h" 23 #include "../Savegame/SavedGame.h" 24 #include "../Engine/Options.h" 44 Text *_txtTitle, *_txtName, *_txtDate, *_txtDelete, *_txtDetails;
47 OptionsOrigin _origin;
48 std::vector<SaveInfo> _saves;
49 unsigned int _firstValidRow;
50 bool _autoquick, _sortable;
55 ListGamesState(OptionsOrigin origin,
int firstValidRow,
bool autoquick);
void updateArrows()
Updates the sorting arrows based on the current setting.
Definition: ListGamesState.cpp:188
Container for all the information associated with a given user action, like mouse clicks...
Definition: Action.h:32
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:40
void btnCancelClick(Action *action)
Handler for clicking the Cancel button.
Definition: ListGamesState.cpp:256
List of Text's split into columns.
Definition: TextList.h:40
Text string displayed on screen.
Definition: Text.h:40
void sortNameClick(Action *action)
Handler for clicking the Name arrow.
Definition: ListGamesState.cpp:301
void disableSort()
disables the sort buttons.
Definition: ListGamesState.cpp:341
virtual ~ListGamesState()
Cleans up the Saved Game state.
Definition: ListGamesState.cpp:155
void lstSavesMouseOver(Action *action)
Handler for moving the mouse over a list item.
Definition: ListGamesState.cpp:265
virtual void updateList()
Updates the savegame list.
Definition: ListGamesState.cpp:237
Coloured button with a text label.
Definition: TextButton.h:38
void sortList(SaveSort sort)
Sorts the savegame list.
Definition: ListGamesState.cpp:213
Base class for saved game screens which provides the common layout and listing.
Definition: ListGamesState.h:39
void sortDateClick(Action *action)
Handler for clicking the Date arrow.
Definition: ListGamesState.cpp:323
void lstSavesMouseOut(Action *action)
Handler for moving the mouse outside the list borders.
Definition: ListGamesState.cpp:280
ListGamesState(OptionsOrigin origin, int firstValidRow, bool autoquick)
Creates the Saved Game state.
Definition: ListGamesState.cpp:85
virtual void lstSavesPress(Action *action)
Handler for clicking the Saves list.
Definition: ListGamesState.cpp:289
void init()
Sets up the saves list.
Definition: ListGamesState.cpp:163
Definition: BaseInfoState.cpp:40