mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-30 01:56:40 +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* mOkButton;
|
||||||
MyGUI::Button* mDeleteButton;
|
MyGUI::Button* mDeleteButton;
|
||||||
|
|
||||||
|
|
||||||
MyGUI::Button* mRangeButton;
|
MyGUI::Button* mRangeButton;
|
||||||
|
|
||||||
MyGUI::Widget* mDurationBox;
|
MyGUI::Widget* mDurationBox;
|
||||||
|
|
@ -106,12 +107,15 @@ namespace MWGui
|
||||||
|
|
||||||
void setConstantEffect(bool constant);
|
void setConstantEffect(bool constant);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
std::map<int, short> mButtonMapping; // maps button ID to effect ID
|
std::map<int, short> mButtonMapping; // maps button ID to effect ID
|
||||||
|
|
||||||
Gui::MWList* mAvailableEffectsList;
|
Gui::MWList* mAvailableEffectsList;
|
||||||
MyGUI::ScrollView* mUsedEffectsView;
|
MyGUI::ScrollView* mUsedEffectsView;
|
||||||
|
|
||||||
|
|
||||||
EditEffectDialog mAddEffectDialog;
|
EditEffectDialog mAddEffectDialog;
|
||||||
std::unique_ptr<SelectAttributeDialog> mSelectAttributeDialog;
|
std::unique_ptr<SelectAttributeDialog> mSelectAttributeDialog;
|
||||||
std::unique_ptr<SelectSkillDialog> mSelectSkillDialog;
|
std::unique_ptr<SelectSkillDialog> mSelectSkillDialog;
|
||||||
|
|
@ -158,6 +162,8 @@ namespace MWGui
|
||||||
|
|
||||||
void setPtr(const MWWorld::Ptr& actor) override;
|
void setPtr(const MWWorld::Ptr& actor) override;
|
||||||
|
|
||||||
|
void updateLabels();
|
||||||
|
|
||||||
std::string_view getWindowIdForLua() const override { return "SpellCreationDialog"; }
|
std::string_view getWindowIdForLua() const override { return "SpellCreationDialog"; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
@ -175,6 +181,7 @@ namespace MWGui
|
||||||
MyGUI::Button* mBuyButton;
|
MyGUI::Button* mBuyButton;
|
||||||
MyGUI::Button* mCancelButton;
|
MyGUI::Button* mCancelButton;
|
||||||
MyGUI::TextBox* mPriceLabel;
|
MyGUI::TextBox* mPriceLabel;
|
||||||
|
MyGUI::TextBox* mPlayerGold;
|
||||||
|
|
||||||
ESM::Spell mSpell;
|
ESM::Spell mSpell;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue