19 #ifndef OPENXCOM_OPTIONSVIDEOSTATE_H
20 #define OPENXCOM_OPTIONSVIDEOSTATE_H
22 #include "../Engine/State.h"
23 #include "OptionsBaseState.h"
30 class ToggleTextButton;
35 class InteractiveSurface;
44 static const std::string GL_EXT, GL_FOLDER, GL_STRING;
47 Text *_txtDisplayResolution, *_txtDisplayX;
48 TextEdit *_txtDisplayWidth, *_txtDisplayHeight;
49 ArrowButton *_btnDisplayResolutionUp, *_btnDisplayResolutionDown;
51 Text *_txtLanguage, *_txtFilter, *_txtGeoScale, *_txtBattleScale;
52 ComboBox *_cbxLanguage, *_cbxFilter, *_cbxDisplayMode, *_cbxGeoScale, *_cbxBattleScale;
58 int _resAmount, _resCurrent;
59 std::vector<std::string> _langs, _filters;
61 void updateDisplayResolution();
void btnLetterboxClick(Action *action)
Handler for clicking the Letterboxed button.
Definition: OptionsVideoState.cpp:516
Container for all the information associated with a given user action, like mouse clicks...
Definition: Action.h:34
Surface that the user can interact with.
Definition: InteractiveSurface.h:39
Definition: ToggleTextButton.h:31
Screen that lets the user configure various Video options.
Definition: OptionsVideoState.h:41
Text string displayed on screen.
Definition: Text.h:41
~OptionsVideoState()
Cleans up the Options state.
Definition: OptionsVideoState.cpp:327
void updateGeoscapeScale(Action *action)
Handler for updating the selected geoscape scale.
Definition: OptionsVideoState.cpp:535
void cbxLanguageChange(Action *action)
Handler for changing the Language combobox.
Definition: OptionsVideoState.cpp:442
void updateBattlescapeScale(Action *action)
Handler for updating the selected battlescape scale.
Definition: OptionsVideoState.cpp:544
void btnLockMouseClick(Action *action)
Handler for clicking the Lock Mouse button.
Definition: OptionsVideoState.cpp:525
void btnDisplayResolutionUpClick(Action *action)
Handler for clicking the Next Resolution button.
Definition: OptionsVideoState.cpp:336
void txtDisplayHeightChange(Action *action)
Handler for changing the Display Height text.
Definition: OptionsVideoState.cpp:415
Text button with a list dropdown when pressed.
Definition: ComboBox.h:38
void resize(int &, int &)
Update the resolution settings, we just resized the window.
Definition: OptionsVideoState.cpp:554
void updateDisplayMode(Action *action)
Handler for clicking the Display Mode combobox.
Definition: OptionsVideoState.cpp:483
The core of the game engine, manages the game's entire contents and structure.
Definition: Game.h:44
void handle(Action *action)
Handles keypresses.
Definition: OptionsVideoState.cpp:569
OptionsVideoState(Game *game, OptionsOrigin origin)
Creates the Options state.
Definition: OptionsVideoState.cpp:49
void txtDisplayWidthChange(Action *action)
Handler for changing the Display Width text.
Definition: OptionsVideoState.cpp:388
Editable version of Text.
Definition: TextEdit.h:35
Options base state for common stuff across Options windows.
Definition: OptionsBaseState.h:43
void btnDisplayResolutionDownClick(Action *action)
Handler for clicking the Previous Resolution button.
Definition: OptionsVideoState.cpp:355
void cbxFilterChange(Action *action)
Handler for changing the Filter combobox.
Definition: OptionsVideoState.cpp:451