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"
|
|
|
|
|
|
|
|
class GuiSettingsMenu : public GuiComponent
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
GuiSettingsMenu(Window* window);
|
|
|
|
~GuiSettingsMenu();
|
|
|
|
|
|
|
|
bool input(InputConfig* config, Input input) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void loadStates();
|
|
|
|
void applyStates();
|
|
|
|
|
|
|
|
ComponentListComponent mList;
|
|
|
|
|
|
|
|
SwitchComponent mDrawFramerateSwitch;
|
2013-06-19 21:02:42 +00:00
|
|
|
SliderComponent mVolumeSlider;
|
2013-08-07 05:41:55 +00:00
|
|
|
SwitchComponent mDisableSoundsSwitch;
|
2013-06-19 21:02:42 +00:00
|
|
|
TextComponent mSaveLabel;
|
2013-06-19 01:12:30 +00:00
|
|
|
|
|
|
|
std::vector<GuiComponent*> mLabels;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|