|
|
|
@ -92,6 +92,7 @@ namespace MWGui
|
|
|
|
|
{
|
|
|
|
|
getWidget(mOkButton, "OkButton");
|
|
|
|
|
getWidget(mBestAttackButton, "BestAttackButton");
|
|
|
|
|
getWidget(mGrabCursorButton, "GrabCursorButton");
|
|
|
|
|
getWidget(mSubtitlesButton, "SubtitlesButton");
|
|
|
|
|
getWidget(mCrosshairButton, "CrosshairButton");
|
|
|
|
|
getWidget(mResolutionList, "ResolutionList");
|
|
|
|
@ -133,6 +134,7 @@ namespace MWGui
|
|
|
|
|
mSubtitlesButton->eventMouseButtonClick += MyGUI::newDelegate(this, &SettingsWindow::onButtonToggled);
|
|
|
|
|
mCrosshairButton->eventMouseButtonClick += MyGUI::newDelegate(this, &SettingsWindow::onButtonToggled);
|
|
|
|
|
mBestAttackButton->eventMouseButtonClick += MyGUI::newDelegate(this, &SettingsWindow::onButtonToggled);
|
|
|
|
|
mGrabCursorButton->eventMouseButtonClick += MyGUI::newDelegate(this, &SettingsWindow::onButtonToggled);
|
|
|
|
|
mInvertYButton->eventMouseButtonClick += MyGUI::newDelegate(this, &SettingsWindow::onButtonToggled);
|
|
|
|
|
mOkButton->eventMouseButtonClick += MyGUI::newDelegate(this, &SettingsWindow::onOkButtonClicked);
|
|
|
|
|
mShadersButton->eventMouseButtonClick += MyGUI::newDelegate(this, &SettingsWindow::onShadersToggled);
|
|
|
|
@ -201,6 +203,7 @@ namespace MWGui
|
|
|
|
|
mSubtitlesButton->setCaptionWithReplacing(Settings::Manager::getBool("subtitles", "GUI") ? "#{sOn}" : "#{sOff}");
|
|
|
|
|
mCrosshairButton->setCaptionWithReplacing(Settings::Manager::getBool("crosshair", "HUD") ? "#{sOn}" : "#{sOff}");
|
|
|
|
|
mBestAttackButton->setCaptionWithReplacing(Settings::Manager::getBool("best attack", "Game") ? "#{sOn}" : "#{sOff}");
|
|
|
|
|
mGrabCursorButton->setCaptionWithReplacing(Settings::Manager::getBool("grab cursor", "Input") ? "#{sOn}" : "#{sOff}");
|
|
|
|
|
|
|
|
|
|
float fovVal = (Settings::Manager::getFloat("field of view", "General")-sFovMin)/(sFovMax-sFovMin);
|
|
|
|
|
mFOVSlider->setScrollPosition(fovVal * (mFOVSlider->getScrollRange()-1));
|
|
|
|
@ -393,7 +396,8 @@ namespace MWGui
|
|
|
|
|
Settings::Manager::setBool("subtitles", "GUI", newState);
|
|
|
|
|
else if (_sender == mBestAttackButton)
|
|
|
|
|
Settings::Manager::setBool("best attack", "Game", newState);
|
|
|
|
|
|
|
|
|
|
else if (_sender == mGrabCursorButton)
|
|
|
|
|
Settings::Manager::setBool("grab cursor", "Input", newState);
|
|
|
|
|
apply();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|