mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-28 00:55:39 +00:00
bff7920f14
Finally changed the stupid "SAVE" label hack to an actual ButtonComponent.
42 lines
919 B
C++
42 lines
919 B
C++
#ifndef _SETTINGSMENU_H_
|
|
#define _SETTINGSMENU_H_
|
|
|
|
#include "../GuiComponent.h"
|
|
#include "ComponentListComponent.h"
|
|
#include <vector>
|
|
#include "SwitchComponent.h"
|
|
#include "SliderComponent.h"
|
|
#include "TextComponent.h"
|
|
#include "NinePatchComponent.h"
|
|
#include "OptionListComponent.h"
|
|
#include "ButtonComponent.h"
|
|
#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;
|
|
|
|
NinePatchComponent mBox;
|
|
|
|
SwitchComponent mDrawFramerateSwitch;
|
|
SliderComponent mVolumeSlider;
|
|
SwitchComponent mDisableSoundsSwitch;
|
|
OptionListComponent< std::shared_ptr<Scraper> > mScraperOptList;
|
|
SwitchComponent mScrapeRatingsSwitch;
|
|
ButtonComponent mSaveButton;
|
|
|
|
std::vector<GuiComponent*> mLabels;
|
|
};
|
|
|
|
#endif
|