diff options
author | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2011-01-27 22:16:40 +0100 |
---|---|---|
committer | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2011-01-27 22:22:59 +0100 |
commit | a355bbe337107850eed2a3a151e0552deed5053a (patch) | |
tree | 524550c988cb640353dd72320190afb9d0dc16cd /crawl-ref/source/tilereg-msg.cc | |
parent | c0e89c07162a563c2273a88877454b40662d42cd (diff) | |
download | crawl-ref-a355bbe337107850eed2a3a151e0552deed5053a.tar.gz crawl-ref-a355bbe337107850eed2a3a151e0552deed5053a.zip |
Tooltip consistency fixes.
* When using the message overlay, treat mouseclicks as relevant to the
map (travel etc.) rather than the message history. That's what the
tooltips are already claiming, and it's probably more important too.
* Right-click on item/features out of sight has no effect, so don't
pretend it does.
Also, I've just realize that the mouseover descriptions don't apply
for the message overlay. Not sure if that's a bug or intentional.
Diffstat (limited to 'crawl-ref/source/tilereg-msg.cc')
-rw-r--r-- | crawl-ref/source/tilereg-msg.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/tilereg-msg.cc b/crawl-ref/source/tilereg-msg.cc index 7ae552f6e6..5205dbc32c 100644 --- a/crawl-ref/source/tilereg-msg.cc +++ b/crawl-ref/source/tilereg-msg.cc @@ -22,6 +22,9 @@ MessageRegion::MessageRegion(FontWrapper *font) : int MessageRegion::handle_mouse(MouseEvent &event) { + if (m_overlay) + return 0; + // TODO enne - mouse scrolling here should mouse scroll up through // the message history in the message pane, without going to the CRT. |