diff options
author | Mateusz Kaduk <mateusz.kaduk@gmail.com> | 2008-06-04 08:32:39 +0000 |
---|---|---|
committer | Mateusz Kaduk <mateusz.kaduk@gmail.com> | 2008-06-04 08:32:39 +0000 |
commit | 54d3f15fde8305e7e65944668bde66d7a4e127db (patch) | |
tree | bad2722f67eabff7adad0fc1890e1307ca6e8b1c /src/gui/viewport.h | |
parent | 0fdbf1d62c1add8800ffc7171a1911e1e243ac2a (diff) | |
download | mana-client-54d3f15fde8305e7e65944668bde66d7a4e127db.tar.gz mana-client-54d3f15fde8305e7e65944668bde66d7a4e127db.tar.bz2 mana-client-54d3f15fde8305e7e65944668bde66d7a4e127db.tar.xz mana-client-54d3f15fde8305e7e65944668bde66d7a4e127db.zip |
Added switch option drawing nicknames only if mouse hover. Useful in crowded places.
Diffstat (limited to 'src/gui/viewport.h')
-rw-r--r-- | src/gui/viewport.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/viewport.h b/src/gui/viewport.h index cb47b5fe..82587938 100644 --- a/src/gui/viewport.h +++ b/src/gui/viewport.h @@ -107,6 +107,12 @@ class Viewport : public WindowContainer, public gcn::MouseListener, mouseReleased(gcn::MouseEvent &event); /** + * Handles mouse move on map. + */ + void + mouseMoved(gcn::MouseEvent &event); + + /** * Shows a popup for an item. * TODO Find some way to get rid of Item here */ @@ -170,6 +176,7 @@ class Viewport : public WindowContainer, public gcn::MouseListener, float mViewX; /**< Current viewpoint in pixels. */ float mViewY; /**< Current viewpoint in pixels. */ bool mShowDebugPath; /**< Show a path from player to pointer. */ + bool mVisibleNames; /**< Show target names. */ /** Images of in range target cursor. */ ImageSet *mInRangeImages[Being::NUM_TC]; @@ -188,6 +195,7 @@ class Viewport : public WindowContainer, public gcn::MouseListener, int mLocalWalkTime; /**< Timestamp before the next walk can be sent. */ PopupMenu *mPopupMenu; /**< Popup menu. */ + Being *mSelectedBeing; /**< Current selected being. */ }; #endif |