mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-19 17:09:40 +00:00
better fix for chargen button colors
This commit is contained in:
parent
b70b8cc4bc
commit
ba2fc2d6f8
3 changed files with 9 additions and 9 deletions
|
@ -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))
|
||||
|
|
|
@ -104,7 +104,7 @@ PickClassDialog::PickClassDialog(MWBase::WindowManager& parWindowManager)
|
|||
MyGUI::ButtonPtr okButton;
|
||||
getWidget(okButton, "OKButton");
|
||||
okButton->eventMouseButtonClick += MyGUI::newDelegate(this, &PickClassDialog::onOkClicked);
|
||||
okButton->setTextColour(MyGUI::Colour(0.6f, 0.56f, 0.45f));
|
||||
okButton->setEnabled(false);
|
||||
|
||||
updateClasses();
|
||||
updateStats();
|
||||
|
@ -140,7 +140,7 @@ void PickClassDialog::setClassId(const std::string &classId)
|
|||
mClassList->setIndexSelected(i);
|
||||
MyGUI::ButtonPtr okButton;
|
||||
getWidget(okButton, "OKButton");
|
||||
okButton->setTextColour(MyGUI::Colour(0.75f, 0.6f, 0.35f));
|
||||
okButton->setEnabled(true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -169,7 +169,7 @@ void PickClassDialog::onSelectClass(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 *classId = mClassList->getItemDataAt<std::string>(_index);
|
||||
if (boost::iequals(mCurrentClassId, *classId))
|
||||
|
|
|
@ -80,7 +80,7 @@ RaceDialog::RaceDialog(MWBase::WindowManager& parWindowManager)
|
|||
getWidget(okButton, "OKButton");
|
||||
okButton->setCaption(mWindowManager.getGameSettingString("sOK", ""));
|
||||
okButton->eventMouseButtonClick += MyGUI::newDelegate(this, &RaceDialog::onOkClicked);
|
||||
okButton->setTextColour(MyGUI::Colour(0.6f, 0.56f, 0.45f));
|
||||
okButton->setEnabled(false);
|
||||
|
||||
updateRaces();
|
||||
updateSkills();
|
||||
|
@ -124,7 +124,7 @@ void RaceDialog::setRaceId(const std::string &raceId)
|
|||
mRaceList->setIndexSelected(i);
|
||||
MyGUI::ButtonPtr okButton;
|
||||
getWidget(okButton, "OKButton");
|
||||
okButton->setTextColour(MyGUI::Colour(0.75f, 0.6f, 0.35f));
|
||||
okButton->setEnabled(true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -208,7 +208,7 @@ void RaceDialog::onSelectRace(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 *raceId = mRaceList->getItemDataAt<std::string>(_index);
|
||||
if (boost::iequals(mCurrentRaceId, *raceId))
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue