1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-07 12:54:00 +00:00
OpenMW/apps/openmw/mwgui/settingswindow.hpp

71 lines
2.2 KiB
C++
Raw Normal View History

#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);
private:
static int const sFovMin = 30;
static int const sFovMax = 140;
static int const sViewDistMin = 2000;
static int const sViewDistMax = 5600;
protected:
MyGUI::Button* mOkButton;
MyGUI::ScrollBar* mMenuTransparencySlider;
2012-05-28 07:46:05 +00:00
MyGUI::ScrollBar* mToolTipDelaySlider;
// graphics
2012-05-22 23:32:36 +00:00
MyGUI::ListBox* mResolutionList;
2012-05-23 03:28:25 +00:00
MyGUI::Button* mFullscreenButton;
MyGUI::Button* mVSyncButton;
MyGUI::Button* mFPSButton;
2012-05-22 23:32:36 +00:00
MyGUI::ScrollBar* mViewDistanceSlider;
MyGUI::ScrollBar* mFOVSlider;
MyGUI::ScrollBar* mAnisotropySlider;
MyGUI::Button* mTextureFilteringButton;
MyGUI::TextBox* mAnisotropyLabel;
MyGUI::Widget* mAnisotropyBox;
2012-05-29 04:45:44 +00:00
MyGUI::Button* mWaterShaderButton;
MyGUI::Button* mReflectObjectsButton;
MyGUI::Button* mReflectActorsButton;
MyGUI::Button* mReflectTerrainButton;
2012-07-11 01:19:51 +00:00
MyGUI::Button* mShadersButton;
2012-05-24 02:34:53 +00:00
// audio
MyGUI::ScrollBar* mMasterVolumeSlider;
MyGUI::ScrollBar* mVoiceVolumeSlider;
MyGUI::ScrollBar* mEffectsVolumeSlider;
MyGUI::ScrollBar* mFootstepsVolumeSlider;
MyGUI::ScrollBar* mMusicVolumeSlider;
void onOkButtonClicked(MyGUI::Widget* _sender);
void onFpsToggled(MyGUI::Widget* _sender);
void onTextureFilteringToggled(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-28 10:34:29 +00:00
void onResolutionCancel();
2012-05-24 02:34:53 +00:00
2012-07-11 01:19:51 +00:00
void onShadersToggled(MyGUI::Widget* _sender);
2012-05-24 02:34:53 +00:00
void apply();
};
}
#endif