mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-29 04:26:43 +00:00
Replace spellcreationdialog.hpp to add player gold to spell creation window.
This commit is contained in:
parent
15a525676c
commit
f8c8b9b433
1 changed files with 191 additions and 184 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue