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-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-06-19 21:02:42 +00:00
|
|
|
TextComponent mSaveLabel;
|
2013-06-19 01:12:30 +00:00
|
|
|
|
|
|
|
std::vector<GuiComponent*> mLabels;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|