mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-05 16:45:34 +00:00
Made sure name and race dialog is properly reset when opening again.
This commit is contained in:
parent
1d69689f77
commit
31a728bf07
4 changed files with 11 additions and 1 deletions
|
@ -109,6 +109,14 @@ void RaceDialog::setNextButtonShow(bool shown)
|
|||
}
|
||||
}
|
||||
|
||||
void RaceDialog::open()
|
||||
{
|
||||
updateRaces();
|
||||
updateSkills();
|
||||
updateSpellPowers();
|
||||
setVisible(true);
|
||||
}
|
||||
|
||||
|
||||
void RaceDialog::setRaceId(const std::string &raceId)
|
||||
{
|
||||
|
|
|
@ -43,6 +43,7 @@ namespace MWGui
|
|||
// setHair()
|
||||
|
||||
void setNextButtonShow(bool shown);
|
||||
void open();
|
||||
|
||||
// Events
|
||||
typedef delegates::CDelegate0 EventHandle_Void;
|
||||
|
|
|
@ -51,6 +51,7 @@ void TextInputDialog::open()
|
|||
{
|
||||
// Make sure the edit box has focus
|
||||
MyGUI::InputManager::getInstance().setKeyFocusWidget(textEdit);
|
||||
textEdit->setOnlyText("");
|
||||
setVisible(true);
|
||||
}
|
||||
|
||||
|
|
|
@ -118,7 +118,7 @@ void WindowManager::updateVisible()
|
|||
raceDialog->setNextButtonShow(raceChosen);
|
||||
raceDialog->eventDone = MyGUI::newDelegate(this, &WindowManager::onRaceDialogDone);
|
||||
raceDialog->eventBack = MyGUI::newDelegate(this, &WindowManager::onRaceDialogBack);
|
||||
raceDialog->setVisible(true);
|
||||
raceDialog->open();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue