1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-29 06:56:37 +00:00

Replace spellcreationdialog.hpp to add player gold to spell creation window.

This commit is contained in:
Garrett 2025-04-02 10:50:05 +00:00 committed by SkyHasACat
parent 15a525676c
commit f8c8b9b433

View file

@ -46,6 +46,7 @@ namespace MWGui
MyGUI::Button* mOkButton;
MyGUI::Button* mDeleteButton;
MyGUI::Button* mRangeButton;
MyGUI::Widget* mDurationBox;
@ -106,12 +107,15 @@ namespace MWGui
void setConstantEffect(bool constant);
protected:
std::map<int, short> mButtonMapping; // maps button ID to effect ID
Gui::MWList* mAvailableEffectsList;
MyGUI::ScrollView* mUsedEffectsView;
EditEffectDialog mAddEffectDialog;
std::unique_ptr<SelectAttributeDialog> mSelectAttributeDialog;
std::unique_ptr<SelectSkillDialog> mSelectSkillDialog;
@ -158,6 +162,8 @@ namespace MWGui
void setPtr(const MWWorld::Ptr& actor) override;
void updateLabels();
std::string_view getWindowIdForLua() const override { return "SpellCreationDialog"; }
protected:
@ -175,6 +181,7 @@ namespace MWGui
MyGUI::Button* mBuyButton;
MyGUI::Button* mCancelButton;
MyGUI::TextBox* mPriceLabel;
MyGUI::TextBox* mPlayerGold;
ESM::Spell mSpell;
};