19 #ifndef OPENXCOM_GRAPHSSTATE_H
20 #define OPENXCOM_GRAPHSSTATE_H
22 #include "../Engine/State.h"
29 class InteractiveSurface;
32 class ToggleTextButton;
49 Text *_txtTitle, *_txtFactor;
51 std::vector<Text *> _txtScale;
52 std::vector<ToggleTextButton *> _btnRegions, _btnCountries, _btnFinances;
53 std::vector<GraphButInfo *> _regionToggles, _countryToggles;
54 std::vector<bool> _financeToggles;
56 std::vector<Surface *> _alienRegionLines, _alienCountryLines;
57 std::vector<Surface *> _xcomRegionLines, _xcomCountryLines;
58 std::vector<Surface *> _financeLines, _incomeLines;
59 bool _alien, _income, _country, _finance;
60 static const size_t GRAPH_MAX_BUTTONS=16;
62 size_t _butRegionsOffset, _butCountriesOffset;
64 void scrollButtons(std::vector<GraphButInfo *> &toggles, std::vector<ToggleTextButton *> &buttons,
size_t &offset,
int step);
96 void updateScale(
double lowerLimit,
double upperLimit);
Container for all the information associated with a given user action, like mouse clicks...
Definition: Action.h:34
void btnCountryListClick(Action *action)
Handler for clicking on a country button.
Definition: GraphsState.cpp:500
void btnRegionListClick(Action *action)
Handler for clicking on a region button.
Definition: GraphsState.cpp:477
A game state that receives user input and reacts accordingly.
Definition: State.h:44
void btnXcomRegionClick(Action *action)
Handler for clicking the xcom region icon.
Definition: GraphsState.cpp:391
void drawCountryLines()
Draw Country Lines.
Definition: GraphsState.cpp:626
Surface that the user can interact with.
Definition: InteractiveSurface.h:39
~GraphsState()
Cleans up the Graphs state.
Definition: GraphsState.cpp:312
List of Text's split into columns.
Definition: TextList.h:42
Definition: ToggleTextButton.h:31
void btnUfoRegionClick(Action *action)
Handler for clicking the ufo region icon.
Definition: GraphsState.cpp:349
Text string displayed on screen.
Definition: Text.h:41
void btnFinanceListClick(Action *action)
Handler for clicking on a finances button.
Definition: GraphsState.cpp:523
void btnGeoscapeClick(Action *action)
Handler for clicking the Geoscape icon.
Definition: GraphsState.cpp:340
void btnUfoCountryClick(Action *action)
Handler for clicking the ufo country icon.
Definition: GraphsState.cpp:370
void btnXcomCountryClick(Action *action)
Handler for clicking the xcom country icon.
Definition: GraphsState.cpp:412
void btnFinanceClick(Action *action)
Handler for clicking the finance icon.
Definition: GraphsState.cpp:455
void drawFinanceLines()
Draw Finances Lines.
Definition: GraphsState.cpp:955
void updateScale(double lowerLimit, double upperLimit)
Update the scale.
Definition: GraphsState.cpp:588
void shiftButtons(Action *action)
Mouse wheel handler for shifting up/down the buttons.
Definition: GraphsState.cpp:1099
void btnIncomeClick(Action *action)
Handler for clicking the income icon.
Definition: GraphsState.cpp:433
GraphsState(Game *game)
Creates the Graphs state.
Definition: GraphsState.cpp:55
void drawRegionLines()
Draw Region Lines.
Definition: GraphsState.cpp:805
void resetScreen()
Reset all the elements on screen.
Definition: GraphsState.cpp:537
void drawLines()
Decide which lines to draw.
Definition: GraphsState.cpp:606
The core of the game engine, manages the game's entire contents and structure.
Definition: Game.h:44
Definition: GraphsState.cpp:44
Graphs screen for displaying graphs of various monthly game data like activity and funding...
Definition: GraphsState.h:41