|
|
@ -70,6 +70,7 @@ namespace MWGui
|
|
|
|
toAdd->eventMouseWheel += MyGUI::newDelegate(this, &SpellBuyingWindow::onMouseWheel);
|
|
|
|
toAdd->eventMouseWheel += MyGUI::newDelegate(this, &SpellBuyingWindow::onMouseWheel);
|
|
|
|
toAdd->setUserString("ToolTipType", "Spell");
|
|
|
|
toAdd->setUserString("ToolTipType", "Spell");
|
|
|
|
toAdd->setUserString("Spell", spell.mId);
|
|
|
|
toAdd->setUserString("Spell", spell.mId);
|
|
|
|
|
|
|
|
toAdd->setUserString("SpellCost", std::to_string(spell.mData.mCost));
|
|
|
|
toAdd->eventMouseButtonClick += MyGUI::newDelegate(this, &SpellBuyingWindow::onSpellButtonClick);
|
|
|
|
toAdd->eventMouseButtonClick += MyGUI::newDelegate(this, &SpellBuyingWindow::onSpellButtonClick);
|
|
|
|
mSpellsWidgetMap.insert(std::make_pair (toAdd, spell.mId));
|
|
|
|
mSpellsWidgetMap.insert(std::make_pair (toAdd, spell.mId));
|
|
|
|
}
|
|
|
|
}
|
|
|
|