summaryrefslogtreecommitdiff
path: root/src/gui/widgets/skilllistbox.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-22 21:58:33 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-22 22:06:08 +0300
commit9a50b90628eb61e1e48db35a36e9ad5c2a9a2bd5 (patch)
tree24ab6a1f2e367a15e2ac9b994e7060767068b8e5 /src/gui/widgets/skilllistbox.h
parente3f651e65f5a486f47ae81fe3ba5e68e8c48f79e (diff)
downloadmanaverse-9a50b90628eb61e1e48db35a36e9ad5c2a9a2bd5.tar.gz
manaverse-9a50b90628eb61e1e48db35a36e9ad5c2a9a2bd5.tar.bz2
manaverse-9a50b90628eb61e1e48db35a36e9ad5c2a9a2bd5.tar.xz
manaverse-9a50b90628eb61e1e48db35a36e9ad5c2a9a2bd5.zip
Show selected and max skill levels in skill popup.
Diffstat (limited to 'src/gui/widgets/skilllistbox.h')
-rw-r--r--src/gui/widgets/skilllistbox.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/widgets/skilllistbox.h b/src/gui/widgets/skilllistbox.h
index fcfeebe62..20cc8d885 100644
--- a/src/gui/widgets/skilllistbox.h
+++ b/src/gui/widgets/skilllistbox.h
@@ -197,8 +197,10 @@ class SkillListBox final : public ListBox
const SkillInfo *const skill = getSkillByEvent(event);
if (!skill)
return;
- skillPopup->show(skill);
- skillPopup->position(viewport->mMouseX, viewport->mMouseY);
+ skillPopup->show(skill,
+ skill->selectedLevel);
+ skillPopup->position(viewport->mMouseX,
+ viewport->mMouseY);
}
void mouseDragged(MouseEvent &event) override final