diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-22 21:30:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-22 21:30:14 +0300 |
commit | e3f651e65f5a486f47ae81fe3ba5e68e8c48f79e (patch) | |
tree | 643ce9eb26f4da078de5afe1d3e8b40eba901f23 /src/dragdrop.h | |
parent | 51583912458f8eb0b080edabf3af5f384a205055 (diff) | |
download | manaverse-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.h | 9 |
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); } } |