|
|
|
@ -179,9 +179,6 @@ namespace MWGui
|
|
|
|
|
getWidget(mWindowBorderButton, "WindowBorderButton");
|
|
|
|
|
getWidget(mTextureFilteringButton, "TextureFilteringButton");
|
|
|
|
|
getWidget(mAnisotropyBox, "AnisotropyBox");
|
|
|
|
|
getWidget(mShadersButton, "ShadersButton");
|
|
|
|
|
getWidget(mShadowsEnabledButton, "ShadowsEnabledButton");
|
|
|
|
|
getWidget(mShadowsTextureSize, "ShadowsTextureSize");
|
|
|
|
|
getWidget(mControlsBox, "ControlsBox");
|
|
|
|
|
getWidget(mResetControlsButton, "ResetControlsButton");
|
|
|
|
|
getWidget(mKeyboardSwitch, "KeyboardButton");
|
|
|
|
@ -211,8 +208,6 @@ namespace MWGui
|
|
|
|
|
|
|
|
|
|
mWaterTextureSize->eventComboChangePosition += MyGUI::newDelegate(this, &SettingsWindow::onWaterTextureSizeChanged);
|
|
|
|
|
|
|
|
|
|
mShadowsTextureSize->eventComboChangePosition += MyGUI::newDelegate(this, &SettingsWindow::onShadowTextureSizeChanged);
|
|
|
|
|
|
|
|
|
|
mKeyboardSwitch->eventMouseButtonClick += MyGUI::newDelegate(this, &SettingsWindow::onKeyboardSwitchClicked);
|
|
|
|
|
mControllerSwitch->eventMouseButtonClick += MyGUI::newDelegate(this, &SettingsWindow::onControllerSwitchClicked);
|
|
|
|
|
|
|
|
|
@ -253,13 +248,6 @@ namespace MWGui
|
|
|
|
|
if (waterTextureSize >= 2048)
|
|
|
|
|
mWaterTextureSize->setIndexSelected(2);
|
|
|
|
|
|
|
|
|
|
mShadowsTextureSize->setCaption (Settings::Manager::getString ("texture size", "Shadows"));
|
|
|
|
|
|
|
|
|
|
if (!Settings::Manager::getBool("shaders", "Objects"))
|
|
|
|
|
{
|
|
|
|
|
mShadowsEnabledButton->setEnabled(false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mWindowBorderButton->setEnabled(!Settings::Manager::getBool("fullscreen", "Video"));
|
|
|
|
|
|
|
|
|
|
mKeyboardSwitch->setStateSelected(true);
|
|
|
|
@ -339,12 +327,6 @@ namespace MWGui
|
|
|
|
|
apply();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void SettingsWindow::onShadowTextureSizeChanged(MyGUI::ComboBox *_sender, size_t pos)
|
|
|
|
|
{
|
|
|
|
|
Settings::Manager::setString("texture size", "Shadows", _sender->getItemNameAt(pos));
|
|
|
|
|
apply();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void SettingsWindow::onButtonToggled(MyGUI::Widget* _sender)
|
|
|
|
|
{
|
|
|
|
|
std::string on = MWBase::Environment::get().getWindowManager()->getGameSettingString("sOn", "On");
|
|
|
|
@ -361,21 +343,6 @@ namespace MWGui
|
|
|
|
|
newState = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (_sender == mShadersButton)
|
|
|
|
|
{
|
|
|
|
|
if (newState == false)
|
|
|
|
|
{
|
|
|
|
|
// shadows not supported
|
|
|
|
|
mShadowsEnabledButton->setEnabled(false);
|
|
|
|
|
mShadowsEnabledButton->setCaptionWithReplacing("#{sOff}");
|
|
|
|
|
Settings::Manager::setBool("enabled", "Shadows", false);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
mShadowsEnabledButton->setEnabled(true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (_sender == mFullscreenButton)
|
|
|
|
|
{
|
|
|
|
|
// check if this resolution is supported in fullscreen
|
|
|
|
|