forked from mirror/openmw-tes3mp
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
|
||||
MyGUI::InputManager::getInstance().setKeyFocusWidget(textEdit);
|
||||
textEdit->setOnlyText("");
|
||||
setVisible(true);
|
||||
}
|
||||
|
||||
|
|
|
@ -172,6 +172,7 @@ void WindowManager::updateVisible()
|
|||
nameDialog = new TextInputDialog(environment, gui->getViewSize());
|
||||
std::string sName = getGameSettingString("sName", "Name");
|
||||
nameDialog->setTextLabel(sName);
|
||||
nameDialog->setTextInput(playerName);
|
||||
nameDialog->setNextButtonShow(nameChosen);
|
||||
nameDialog->eventDone = MyGUI::newDelegate(this, &WindowManager::onNameDialogDone);
|
||||
nameDialog->open();
|
||||
|
|
Loading…
Reference in a new issue