1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-11-29 12:34:30 +00:00

Remove enchanting dialog, missing empty lines

This commit is contained in:
SkyHasACat 2025-07-04 13:46:08 -05:00
parent fce73395e5
commit 30e5e17e4c
3 changed files with 2 additions and 6 deletions

View file

@ -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,10 +65,6 @@ 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)

View file

@ -70,7 +70,6 @@ namespace MWGui
MyGUI::TextBox* mSuccessChance;
MyGUI::TextBox* mPrice;
MyGUI::TextBox* mPriceText;
MyGUI::TextBox* mPlayerGold;
MWMechanics::Enchanting mEnchanting;
ESM::EffectList mEffectList;

View file

@ -30,6 +30,7 @@
namespace
{
bool sortMagicEffects(short id1, short id2)
{
const MWWorld::Store<ESM::GameSetting>& gmst