|
|
|
@ -48,7 +48,7 @@ BirthDialog::BirthDialog(MWBase::WindowManager& parWindowManager)
|
|
|
|
|
getWidget(okButton, "OKButton");
|
|
|
|
|
okButton->setCaption(mWindowManager.getGameSettingString("sOK", ""));
|
|
|
|
|
okButton->eventMouseButtonClick += MyGUI::newDelegate(this, &BirthDialog::onOkClicked);
|
|
|
|
|
okButton->setTextColour(MyGUI::Colour(0.6f, 0.56f, 0.45f));
|
|
|
|
|
okButton->setEnabled(false);
|
|
|
|
|
|
|
|
|
|
updateBirths();
|
|
|
|
|
updateSpells();
|
|
|
|
@ -85,7 +85,7 @@ void BirthDialog::setBirthId(const std::string &birthId)
|
|
|
|
|
mBirthList->setIndexSelected(i);
|
|
|
|
|
MyGUI::ButtonPtr okButton;
|
|
|
|
|
getWidget(okButton, "OKButton");
|
|
|
|
|
okButton->setTextColour(MyGUI::Colour(0.75f, 0.6f, 0.35f));
|
|
|
|
|
okButton->setEnabled(true);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -114,7 +114,7 @@ void BirthDialog::onSelectBirth(MyGUI::ListBox* _sender, size_t _index)
|
|
|
|
|
|
|
|
|
|
MyGUI::ButtonPtr okButton;
|
|
|
|
|
getWidget(okButton, "OKButton");
|
|
|
|
|
okButton->setTextColour(MyGUI::Colour(0.75f, 0.6f, 0.35f));
|
|
|
|
|
okButton->setEnabled(true);
|
|
|
|
|
|
|
|
|
|
const std::string *birthId = mBirthList->getItemDataAt<std::string>(_index);
|
|
|
|
|
if (boost::iequals(mCurrentBirthId, *birthId))
|
|
|
|
|