mirror of
https://github.com/OpenMW/openmw.git
synced 2025-11-08 20:46:50 +00:00
Update file enchantingdialog.cpp
This commit is contained in:
parent
57f8355bac
commit
7f11579d39
1 changed files with 5 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ namespace MWGui
|
||||||
getWidget(mBuyButton, "BuyButton");
|
getWidget(mBuyButton, "BuyButton");
|
||||||
getWidget(mPrice, "PriceLabel");
|
getWidget(mPrice, "PriceLabel");
|
||||||
getWidget(mPriceText, "PriceTextLabel");
|
getWidget(mPriceText, "PriceTextLabel");
|
||||||
|
getWidget(mPlayerGold, "PlayerGold");
|
||||||
setWidgets(mAvailableEffectsList, mUsedEffectsView);
|
setWidgets(mAvailableEffectsList, mUsedEffectsView);
|
||||||
|
|
||||||
mCancelButton->eventMouseButtonClick += MyGUI::newDelegate(this, &EnchantingDialog::onCancelButtonClicked);
|
mCancelButton->eventMouseButtonClick += MyGUI::newDelegate(this, &EnchantingDialog::onCancelButtonClicked);
|
||||||
|
|
@ -65,6 +65,10 @@ namespace MWGui
|
||||||
{
|
{
|
||||||
center();
|
center();
|
||||||
MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mName);
|
MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mName);
|
||||||
|
|
||||||
|
MWWorld::Ptr player = MWMechanics::getPlayer();
|
||||||
|
int playerGold = player.getClass().getContainerStore(player).count(MWWorld::ContainerStore::sGoldId);
|
||||||
|
mPlayerGold->setCaptionWithReplacing(MyGUI::utility::toString(playerGold));
|
||||||
}
|
}
|
||||||
|
|
||||||
void EnchantingDialog::setSoulGem(const MWWorld::Ptr& gem)
|
void EnchantingDialog::setSoulGem(const MWWorld::Ptr& gem)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue