1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-12-18 02:13:09 +00:00

Update 2 files

- /apps/openmw/mwgui/spellcreationdialog.cpp
- /apps/openmw/mwgui/spellcreationdialog.hpp
This commit is contained in:
Garrett 2025-04-03 01:45:28 +00:00 committed by SkyHasACat
parent f8c8b9b433
commit bcb27fff6a
2 changed files with 9 additions and 15 deletions

View file

@ -556,10 +556,10 @@ namespace MWGui
for (const short effectId : knownEffects) for (const short effectId : knownEffects)
{ {
mAvailableEffectsList->addItem(MWBase::Environment::get() mAvailableEffectsList->addItem(MWBase::Environment::get()
.getESMStore() .getESMStore()
->get<ESM::GameSetting>() ->get<ESM::GameSetting>()
.find(ESM::MagicEffect::indexToGmstString(effectId)) .find(ESM::MagicEffect::indexToGmstString(effectId))
->mValue.getString()); ->mValue.getString());
mButtonMapping[i] = effectId; mButtonMapping[i] = effectId;
++i; ++i;
} }

View file

@ -46,7 +46,6 @@ 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;
@ -107,15 +106,12 @@ 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;
@ -162,8 +158,6 @@ 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: