summaryrefslogtreecommitdiff
path: root/src/gui/widgets/itemshortcutcontainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/itemshortcutcontainer.cpp')
-rw-r--r--src/gui/widgets/itemshortcutcontainer.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gui/widgets/itemshortcutcontainer.cpp b/src/gui/widgets/itemshortcutcontainer.cpp
index 9604d33d8..7b6df7644 100644
--- a/src/gui/widgets/itemshortcutcontainer.cpp
+++ b/src/gui/widgets/itemshortcutcontainer.cpp
@@ -594,8 +594,16 @@ void ItemShortcutContainer::mouseMoved(MouseEvent &event)
if (!skill)
return;
+ // +++ for now from data only get cast type
+ const std::string data = selShortcut->getItemData(index);
+ CastTypeT castType = CastType::Default;
+ if (!data.empty())
+ {
+ castType = static_cast<CastTypeT>(atoi(data.c_str()));
+ }
skillPopup->show(skill,
- toInt(itemColor, int));
+ toInt(itemColor, int),
+ castType);
skillPopup->position(viewport->mMouseX,
viewport->mMouseY);
}