mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 10:53:51 +00:00
Change text for ok button to next when showNext is true, also adjust position/sizes.
This commit is contained in:
parent
de554dffd2
commit
ae4d5291b2
1 changed files with 8 additions and 6 deletions
|
@ -68,14 +68,16 @@ RaceDialog::RaceDialog(MWWorld::Environment& environment, bool showNext)
|
||||||
getWidget(backButton, "BackButton");
|
getWidget(backButton, "BackButton");
|
||||||
backButton->eventMouseButtonClick = MyGUI::newDelegate(this, &RaceDialog::onBackClicked);
|
backButton->eventMouseButtonClick = MyGUI::newDelegate(this, &RaceDialog::onBackClicked);
|
||||||
|
|
||||||
if (showNext)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
MyGUI::ButtonPtr okButton;
|
MyGUI::ButtonPtr okButton;
|
||||||
getWidget(okButton, "OKButton");
|
getWidget(okButton, "OKButton");
|
||||||
okButton->eventMouseButtonClick = MyGUI::newDelegate(this, &RaceDialog::onOkClicked);
|
okButton->eventMouseButtonClick = MyGUI::newDelegate(this, &RaceDialog::onOkClicked);
|
||||||
|
if (showNext)
|
||||||
|
{
|
||||||
|
okButton->setCaption("Next");
|
||||||
|
|
||||||
|
// Adjust back button when next is shown
|
||||||
|
backButton->setCoord(backButton->getCoord() + MyGUI::IntPoint(14, 0));
|
||||||
|
okButton->setCoord(okButton->getCoord() + MyGUI::IntSize(14, 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
updateRaces();
|
updateRaces();
|
||||||
|
|
Loading…
Reference in a new issue