summaryrefslogtreecommitdiff
path: root/src/dragdrop.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-22 21:30:14 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-22 21:30:14 +0300
commite3f651e65f5a486f47ae81fe3ba5e68e8c48f79e (patch)
tree643ce9eb26f4da078de5afe1d3e8b40eba901f23 /src/dragdrop.h
parent51583912458f8eb0b080edabf3af5f384a205055 (diff)
downloadmanaverse-e3f651e65f5a486f47ae81fe3ba5e68e8c48f79e.tar.gz
manaverse-e3f651e65f5a486f47ae81fe3ba5e68e8c48f79e.tar.bz2
manaverse-e3f651e65f5a486f47ae81fe3ba5e68e8c48f79e.tar.xz
manaverse-e3f651e65f5a486f47ae81fe3ba5e68e8c48f79e.zip
Allow drag skill with any selected level to shortcuts window.
Diffstat (limited to 'src/dragdrop.h')
-rw-r--r--src/dragdrop.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/dragdrop.h b/src/dragdrop.h
index ef4c2b844..97f978ee2 100644
--- a/src/dragdrop.h
+++ b/src/dragdrop.h
@@ -68,6 +68,9 @@ class DragDrop final
ItemColor getItemColor() const
{ return mItemColor; }
+ void setItemColor(const ItemColor color)
+ { mItemColor = color; }
+
Image *getItemImage()
{ return mItemImage; }
@@ -144,7 +147,7 @@ class DragDrop final
if (mItemImage)
mItemImage->decRef();
mItem = 0;
- mItemColor = ItemColor_one;
+ mItemColor = ItemColor_zero;
mText.clear();
mItemImage = nullptr;
mSource = DragDropSource::Empty;
@@ -158,10 +161,12 @@ class DragDrop final
mItemImage = data->icon;
if (mItemImage)
mItemImage->incRef();
- mItem = info->id;
mSource = source;
mTag = tag;
}
+ mItem = info->id;
+ mItemColor = fromInt(info->selectedLevel,
+ ItemColor);
}
}