summaryrefslogtreecommitdiff
path: root/src/gui/widgets/listbox.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-17 20:30:52 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-17 20:30:52 +0300
commit1f66ae673801e76f3574944628a7980b9bfbabda (patch)
tree129e320b826382da0603b3eed136f55b50a9d7e7 /src/gui/widgets/listbox.h
parentc2efedab22275302f0a10cc197424d345a021d18 (diff)
downloadplus-1f66ae673801e76f3574944628a7980b9bfbabda.tar.gz
plus-1f66ae673801e76f3574944628a7980b9bfbabda.tar.bz2
plus-1f66ae673801e76f3574944628a7980b9bfbabda.tar.xz
plus-1f66ae673801e76f3574944628a7980b9bfbabda.zip
Fix npc menu selection by mouse.
Diffstat (limited to 'src/gui/widgets/listbox.h')
-rw-r--r--src/gui/widgets/listbox.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/widgets/listbox.h b/src/gui/widgets/listbox.h
index 1df07f19d..b02357752 100644
--- a/src/gui/widgets/listbox.h
+++ b/src/gui/widgets/listbox.h
@@ -64,12 +64,18 @@ class ListBox : public gcn::ListBox
void mouseWheelMovedDown(gcn::MouseEvent& mouseEvent);
+ void mousePressed(gcn::MouseEvent &event);
+
void mouseDragged(gcn::MouseEvent &event);
void refocus();
+ void setDistributeMousePressed(bool b)
+ { mDistributeMousePressed = b; }
+
protected:
gcn::Color mHighlightColor;
+ bool mDistributeMousePressed;
static float mAlpha;
};