|
|
@ -166,7 +166,6 @@ namespace MWGui
|
|
|
|
getWidget(mFullscreenButton, "FullscreenButton");
|
|
|
|
getWidget(mFullscreenButton, "FullscreenButton");
|
|
|
|
getWidget(mVSyncButton, "VSyncButton");
|
|
|
|
getWidget(mVSyncButton, "VSyncButton");
|
|
|
|
getWidget(mWindowBorderButton, "WindowBorderButton");
|
|
|
|
getWidget(mWindowBorderButton, "WindowBorderButton");
|
|
|
|
getWidget(mFPSButton, "FPSButton");
|
|
|
|
|
|
|
|
getWidget(mFOVSlider, "FOVSlider");
|
|
|
|
getWidget(mFOVSlider, "FOVSlider");
|
|
|
|
getWidget(mAnisotropySlider, "AnisotropySlider");
|
|
|
|
getWidget(mAnisotropySlider, "AnisotropySlider");
|
|
|
|
getWidget(mTextureFilteringButton, "TextureFilteringButton");
|
|
|
|
getWidget(mTextureFilteringButton, "TextureFilteringButton");
|
|
|
@ -201,7 +200,6 @@ namespace MWGui
|
|
|
|
mSettingsTab->eventTabChangeSelect += MyGUI::newDelegate(this, &SettingsWindow::onTabChanged);
|
|
|
|
mSettingsTab->eventTabChangeSelect += MyGUI::newDelegate(this, &SettingsWindow::onTabChanged);
|
|
|
|
mOkButton->eventMouseButtonClick += MyGUI::newDelegate(this, &SettingsWindow::onOkButtonClicked);
|
|
|
|
mOkButton->eventMouseButtonClick += MyGUI::newDelegate(this, &SettingsWindow::onOkButtonClicked);
|
|
|
|
mTextureFilteringButton->eventComboChangePosition += MyGUI::newDelegate(this, &SettingsWindow::onTextureFilteringChanged);
|
|
|
|
mTextureFilteringButton->eventComboChangePosition += MyGUI::newDelegate(this, &SettingsWindow::onTextureFilteringChanged);
|
|
|
|
mFPSButton->eventMouseButtonClick += MyGUI::newDelegate(this, &SettingsWindow::onFpsToggled);
|
|
|
|
|
|
|
|
mResolutionList->eventListChangePosition += MyGUI::newDelegate(this, &SettingsWindow::onResolutionSelected);
|
|
|
|
mResolutionList->eventListChangePosition += MyGUI::newDelegate(this, &SettingsWindow::onResolutionSelected);
|
|
|
|
|
|
|
|
|
|
|
|
mWaterTextureSize->eventComboChangePosition += MyGUI::newDelegate(this, &SettingsWindow::onWaterTextureSizeChanged);
|
|
|
|
mWaterTextureSize->eventComboChangePosition += MyGUI::newDelegate(this, &SettingsWindow::onWaterTextureSizeChanged);
|
|
|
@ -256,8 +254,6 @@ namespace MWGui
|
|
|
|
mShadowsEnabledButton->setEnabled(false);
|
|
|
|
mShadowsEnabledButton->setEnabled(false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
mFPSButton->setCaptionWithReplacing(fpsLevelToStr(Settings::Manager::getInt("fps", "HUD")));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MyGUI::TextBox* fovText;
|
|
|
|
MyGUI::TextBox* fovText;
|
|
|
|
getWidget(fovText, "FovText");
|
|
|
|
getWidget(fovText, "FovText");
|
|
|
|
fovText->setCaption("Field of View (" + MyGUI::utility::toString(int(Settings::Manager::getInt("field of view", "General"))) + ")");
|
|
|
|
fovText->setCaption("Field of View (" + MyGUI::utility::toString(int(Settings::Manager::getInt("field of view", "General"))) + ")");
|
|
|
@ -427,14 +423,6 @@ namespace MWGui
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void SettingsWindow::onFpsToggled(MyGUI::Widget* _sender)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
int newLevel = (Settings::Manager::getInt("fps", "HUD") + 1) % 2;
|
|
|
|
|
|
|
|
Settings::Manager::setInt("fps", "HUD", newLevel);
|
|
|
|
|
|
|
|
mFPSButton->setCaptionWithReplacing(fpsLevelToStr(newLevel));
|
|
|
|
|
|
|
|
apply();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void SettingsWindow::onTextureFilteringChanged(MyGUI::ComboBox* _sender, size_t pos)
|
|
|
|
void SettingsWindow::onTextureFilteringChanged(MyGUI::ComboBox* _sender, size_t pos)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Settings::Manager::setString("texture filtering", "General", Misc::StringUtils::lowerCase(_sender->getItemNameAt(pos)));
|
|
|
|
Settings::Manager::setString("texture filtering", "General", Misc::StringUtils::lowerCase(_sender->getItemNameAt(pos)));
|
|
|
|