diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-08-23 13:43:17 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-08-23 13:43:17 +0000 |
commit | 4b8df221acc3bd3e681357df912bdbc7a1ce6c3f (patch) | |
tree | 3b3d196dcbeacc67b1479d56e3eccc14dfef07e1 /src/gui/viewport.cpp | |
parent | 4346b429cc875a85095fff271a8d82a46c2cfc91 (diff) | |
download | mana-4b8df221acc3bd3e681357df912bdbc7a1ce6c3f.tar.gz mana-4b8df221acc3bd3e681357df912bdbc7a1ce6c3f.tar.bz2 mana-4b8df221acc3bd3e681357df912bdbc7a1ce6c3f.tar.xz mana-4b8df221acc3bd3e681357df912bdbc7a1ce6c3f.zip |
Removed two useless popup related methods, used generic close button
functionality for the debug window and renamed Particle::mVector to
Particle::mVelocity for clarity.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r-- | src/gui/viewport.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index 6c89d107..4c64c627 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -371,12 +371,12 @@ Viewport::mousePressed(gcn::MouseEvent &event) if ((being = beingManager->findBeing(tilex, tiley)) && being->getType() != Being::LOCALPLAYER) { - showPopup(event.getX(), event.getY(), being); + mPopupMenu->showPopup(event.getX(), event.getY(), being); return; } else if((floorItem = floorItemManager->findByCoordinates(tilex, tiley))) { - showPopup(event.getX(), event.getY(), floorItem); + mPopupMenu->showPopup(event.getX(), event.getY(), floorItem); return; } } @@ -474,18 +474,6 @@ Viewport::showPopup(int x, int y, Item *item) } void -Viewport::showPopup(int x, int y, FloorItem *floorItem) -{ - mPopupMenu->showPopup(x, y, floorItem); -} - -void -Viewport::showPopup(int x, int y, Being *being) -{ - mPopupMenu->showPopup(x, y, being); -} - -void Viewport::optionChanged(const std::string &name) { mScrollLaziness = (int) config.getValue("ScrollLaziness", 32); |