summaryrefslogtreecommitdiff
path: root/src/game/GameView.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-10-01 13:26:43 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-10-01 13:26:43 (GMT)
commit0e394ed62e4a369bb57fe62137878d255c558cb0 (patch)
treed1a25ceb7c31338f187a758de8454fe0b02467ad /src/game/GameView.cpp
parent58763f090043be8709addc9a7ac33aeaab591d7c (diff)
downloadpowder-0e394ed62e4a369bb57fe62137878d255c558cb0.zip
powder-0e394ed62e4a369bb57fe62137878d255c558cb0.tar.gz
Don't highlight menus when the mouse button is down.
Diffstat (limited to 'src/game/GameView.cpp')
-rw-r--r--src/game/GameView.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp
index 56f90e3..74a2b5a 100644
--- a/src/game/GameView.cpp
+++ b/src/game/GameView.cpp
@@ -446,7 +446,8 @@ public:
MenuAction(GameView * _v, Menu * menu_) { v = _v; menu = menu_; }
void MouseEnterCallback(ui::Button * sender)
{
- v->c->SetActiveMenu(menu);
+ if(!ui::Engine::Ref().GetMouseButton())
+ v->c->SetActiveMenu(menu);
}
void ActionCallback(ui::Button * sender)
{