ES-DE/src/components/GuiSettingsMenu.h

42 lines
919 B
C
Raw Normal View History

#ifndef _SETTINGSMENU_H_
#define _SETTINGSMENU_H_
#include "../GuiComponent.h"
#include "ComponentListComponent.h"
#include <vector>
#include "SwitchComponent.h"
#include "SliderComponent.h"
#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"
#include "ButtonComponent.h"
2013-10-03 20:58:09 +00:00
#include "../scrapers/Scraper.h"
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;
SwitchComponent mDrawFramerateSwitch;
SliderComponent mVolumeSlider;
SwitchComponent mDisableSoundsSwitch;
2013-10-03 20:58:09 +00:00
OptionListComponent< std::shared_ptr<Scraper> > mScraperOptList;
SwitchComponent mScrapeRatingsSwitch;
ButtonComponent mSaveButton;
std::vector<GuiComponent*> mLabels;
};
#endif