mirror of
https://github.com/OpenMW/openmw.git
synced 2025-11-08 18:16:40 +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(mPrice, "PriceLabel");
|
||||
getWidget(mPriceText, "PriceTextLabel");
|
||||
|
||||
getWidget(mPlayerGold, "PlayerGold");
|
||||
setWidgets(mAvailableEffectsList, mUsedEffectsView);
|
||||
|
||||
mCancelButton->eventMouseButtonClick += MyGUI::newDelegate(this, &EnchantingDialog::onCancelButtonClicked);
|
||||
|
|
@ -65,6 +65,10 @@ namespace MWGui
|
|||
{
|
||||
center();
|
||||
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue