|
|
|
@ -166,7 +166,6 @@ namespace MWGui
|
|
|
|
|
getWidget(mFullscreenButton, "FullscreenButton");
|
|
|
|
|
getWidget(mVSyncButton, "VSyncButton");
|
|
|
|
|
getWidget(mWindowBorderButton, "WindowBorderButton");
|
|
|
|
|
getWidget(mFPSButton, "FPSButton");
|
|
|
|
|
getWidget(mFOVSlider, "FOVSlider");
|
|
|
|
|
getWidget(mAnisotropySlider, "AnisotropySlider");
|
|
|
|
|
getWidget(mTextureFilteringButton, "TextureFilteringButton");
|
|
|
|
@ -201,7 +200,6 @@ namespace MWGui
|
|
|
|
|
mSettingsTab->eventTabChangeSelect += MyGUI::newDelegate(this, &SettingsWindow::onTabChanged);
|
|
|
|
|
mOkButton->eventMouseButtonClick += MyGUI::newDelegate(this, &SettingsWindow::onOkButtonClicked);
|
|
|
|
|
mTextureFilteringButton->eventComboChangePosition += MyGUI::newDelegate(this, &SettingsWindow::onTextureFilteringChanged);
|
|
|
|
|
mFPSButton->eventMouseButtonClick += MyGUI::newDelegate(this, &SettingsWindow::onFpsToggled);
|
|
|
|
|
mResolutionList->eventListChangePosition += MyGUI::newDelegate(this, &SettingsWindow::onResolutionSelected);
|
|
|
|
|
|
|
|
|
|
mWaterTextureSize->eventComboChangePosition += MyGUI::newDelegate(this, &SettingsWindow::onWaterTextureSizeChanged);
|
|
|
|
@ -256,8 +254,6 @@ namespace MWGui
|
|
|
|
|
mShadowsEnabledButton->setEnabled(false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mFPSButton->setCaptionWithReplacing(fpsLevelToStr(Settings::Manager::getInt("fps", "HUD")));
|
|
|
|
|
|
|
|
|
|
MyGUI::TextBox* fovText;
|
|
|
|
|
getWidget(fovText, "FovText");
|
|
|
|
|
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)
|
|
|
|
|
{
|
|
|
|
|
Settings::Manager::setString("texture filtering", "General", Misc::StringUtils::lowerCase(_sender->getItemNameAt(pos)));
|
|
|
|
|