forked from mirror/openmw-tes3mp
disable "window border" setting in the ingame settings UI if fullscreen is enabled
This commit is contained in:
parent
e85df00158
commit
764cd9ca16
1 changed files with 4 additions and 0 deletions
|
@ -240,6 +240,8 @@ namespace MWGui
|
|||
MyGUI::TextBox* diffText;
|
||||
getWidget(diffText, "DifficultyText");
|
||||
diffText->setCaptionWithReplacing("#{sDifficulty} (" + boost::lexical_cast<std::string>(int(Settings::Manager::getInt("difficulty", "Game"))) + ")");
|
||||
|
||||
mWindowBorderButton->setEnabled(!Settings::Manager::getBool("fullscreen", "Video"));
|
||||
}
|
||||
|
||||
void SettingsWindow::onOkButtonClicked(MyGUI::Widget* _sender)
|
||||
|
@ -355,6 +357,8 @@ namespace MWGui
|
|||
_sender->castType<MyGUI::Button>()->setCaption(off);
|
||||
return;
|
||||
}
|
||||
|
||||
mWindowBorderButton->setEnabled(!newState);
|
||||
}
|
||||
|
||||
if (getSettingType(_sender) == checkButtonType)
|
||||
|
|
Loading…
Reference in a new issue