mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-01 10:06:42 +00:00
Made sure current player name is shown in name dialog.
This commit is contained in:
parent
e6ad68b8d0
commit
2bf29c17f5
2 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,6 @@ void TextInputDialog::open()
|
||||||
{
|
{
|
||||||
// Make sure the edit box has focus
|
// Make sure the edit box has focus
|
||||||
MyGUI::InputManager::getInstance().setKeyFocusWidget(textEdit);
|
MyGUI::InputManager::getInstance().setKeyFocusWidget(textEdit);
|
||||||
textEdit->setOnlyText("");
|
|
||||||
setVisible(true);
|
setVisible(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -172,6 +172,7 @@ void WindowManager::updateVisible()
|
||||||
nameDialog = new TextInputDialog(environment, gui->getViewSize());
|
nameDialog = new TextInputDialog(environment, gui->getViewSize());
|
||||||
std::string sName = getGameSettingString("sName", "Name");
|
std::string sName = getGameSettingString("sName", "Name");
|
||||||
nameDialog->setTextLabel(sName);
|
nameDialog->setTextLabel(sName);
|
||||||
|
nameDialog->setTextInput(playerName);
|
||||||
nameDialog->setNextButtonShow(nameChosen);
|
nameDialog->setNextButtonShow(nameChosen);
|
||||||
nameDialog->eventDone = MyGUI::newDelegate(this, &WindowManager::onNameDialogDone);
|
nameDialog->eventDone = MyGUI::newDelegate(this, &WindowManager::onNameDialogDone);
|
||||||
nameDialog->open();
|
nameDialog->open();
|
||||||
|
|
Loading…
Reference in a new issue