2012-05-22 19:40:42 +00:00
|
|
|
#ifndef MWGUI_SETTINGS_H
|
|
|
|
#define MWGUI_SETTINGS_H
|
|
|
|
|
|
|
|
#include "window_base.hpp"
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
class WindowManager;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
class SettingsWindow : public WindowBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SettingsWindow(WindowManager& parWindowManager);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
MyGUI::Button* mOkButton;
|
2012-05-22 23:32:36 +00:00
|
|
|
MyGUI::ListBox* mResolutionList;
|
2012-05-23 03:28:25 +00:00
|
|
|
MyGUI::Button* mFullscreenButton;
|
2012-05-22 23:32:36 +00:00
|
|
|
MyGUI::ScrollBar* mMenuTransparencySlider;
|
|
|
|
MyGUI::ScrollBar* mViewDistanceSlider;
|
2012-05-22 19:40:42 +00:00
|
|
|
|
2012-05-24 02:34:53 +00:00
|
|
|
// audio
|
|
|
|
MyGUI::ScrollBar* mMasterVolumeSlider;
|
|
|
|
MyGUI::ScrollBar* mVoiceVolumeSlider;
|
|
|
|
MyGUI::ScrollBar* mEffectsVolumeSlider;
|
|
|
|
MyGUI::ScrollBar* mFootstepsVolumeSlider;
|
|
|
|
MyGUI::ScrollBar* mMusicVolumeSlider;
|
|
|
|
|
2012-05-22 19:40:42 +00:00
|
|
|
void onOkButtonClicked(MyGUI::Widget* _sender);
|
2012-05-22 23:32:36 +00:00
|
|
|
void onSliderChangePosition(MyGUI::ScrollBar* scroller, size_t pos);
|
2012-05-23 03:28:25 +00:00
|
|
|
void onButtonToggled(MyGUI::Widget* _sender);
|
|
|
|
void onResolutionSelected(MyGUI::ListBox* _sender, size_t index);
|
|
|
|
void onResolutionAccept();
|
2012-05-24 02:34:53 +00:00
|
|
|
|
|
|
|
void apply();
|
2012-05-22 19:40:42 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|