mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 18:19:55 +00:00
Show currently selected input type for settings window
This commit is contained in:
parent
bb6ed06a4e
commit
95219a7936
1 changed files with 7 additions and 0 deletions
|
@ -245,6 +245,9 @@ namespace MWGui
|
||||||
MyGUI::TextBox* diffText;
|
MyGUI::TextBox* diffText;
|
||||||
getWidget(diffText, "DifficultyText");
|
getWidget(diffText, "DifficultyText");
|
||||||
diffText->setCaptionWithReplacing("#{sDifficulty} (" + boost::lexical_cast<std::string>(int(Settings::Manager::getInt("difficulty", "Game"))) + ")");
|
diffText->setCaptionWithReplacing("#{sDifficulty} (" + boost::lexical_cast<std::string>(int(Settings::Manager::getInt("difficulty", "Game"))) + ")");
|
||||||
|
|
||||||
|
mKeyboardSwitch->setStateSelected(true);
|
||||||
|
mControllerSwitch->setStateSelected(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SettingsWindow::onOkButtonClicked(MyGUI::Widget* _sender)
|
void SettingsWindow::onOkButtonClicked(MyGUI::Widget* _sender)
|
||||||
|
@ -447,6 +450,8 @@ namespace MWGui
|
||||||
if(mKeyboardMode)
|
if(mKeyboardMode)
|
||||||
return;
|
return;
|
||||||
mKeyboardMode = true;
|
mKeyboardMode = true;
|
||||||
|
mKeyboardSwitch->setStateSelected(true);
|
||||||
|
mControllerSwitch->setStateSelected(false);
|
||||||
updateControlsBox();
|
updateControlsBox();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -455,6 +460,8 @@ namespace MWGui
|
||||||
if(!mKeyboardMode)
|
if(!mKeyboardMode)
|
||||||
return;
|
return;
|
||||||
mKeyboardMode = false;
|
mKeyboardMode = false;
|
||||||
|
mKeyboardSwitch->setStateSelected(false);
|
||||||
|
mControllerSwitch->setStateSelected(true);
|
||||||
updateControlsBox();
|
updateControlsBox();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue