2013-06-19 01:12:30 +00:00
|
|
|
#ifndef _SETTINGSMENU_H_
|
|
|
|
#define _SETTINGSMENU_H_
|
|
|
|
|
|
|
|
#include "../GuiComponent.h"
|
|
|
|
#include "ComponentListComponent.h"
|
|
|
|
#include <vector>
|
|
|
|
#include "SwitchComponent.h"
|
2013-06-19 21:02:42 +00:00
|
|
|
#include "SliderComponent.h"
|
2013-06-19 01:12:30 +00:00
|
|
|
#include "TextComponent.h"
|
2013-09-14 16:14:21 +00:00
|
|
|
#include "NinePatchComponent.h"
|
2013-10-03 20:58:09 +00:00
|
|
|
#include "OptionListComponent.h"
|
2013-10-16 22:14:50 +00:00
|
|
|
#include "ButtonComponent.h"
|
2013-10-03 20:58:09 +00:00
|
|
|
#include "../scrapers/Scraper.h"
|
2013-06-19 01:12:30 +00:00
|
|
|
|
|
|
|
class GuiSettingsMenu : public GuiComponent
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
GuiSettingsMenu(Window* window);
|
|
|
|
~GuiSettingsMenu();
|
|
|
|
|
|
|
|
bool input(InputConfig* config, Input input) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void loadStates();
|
|
|
|
void applyStates();
|
|
|
|
|
|
|
|
ComponentListComponent mList;
|
|
|
|
|
2013-09-14 16:14:21 +00:00
|
|
|
NinePatchComponent mBox;
|
2013-08-07 22:40:27 +00:00
|
|
|
|
2013-06-19 01:12:30 +00:00
|
|
|
SwitchComponent mDrawFramerateSwitch;
|
2013-06-19 21:02:42 +00:00
|
|
|
SliderComponent mVolumeSlider;
|
2013-08-07 05:41:55 +00:00
|
|
|
SwitchComponent mDisableSoundsSwitch;
|
2013-10-03 20:58:09 +00:00
|
|
|
OptionListComponent< std::shared_ptr<Scraper> > mScraperOptList;
|
2013-10-16 22:14:50 +00:00
|
|
|
SwitchComponent mScrapeRatingsSwitch;
|
|
|
|
ButtonComponent mSaveButton;
|
|
|
|
|
2013-06-19 01:12:30 +00:00
|
|
|
std::vector<GuiComponent*> mLabels;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|