diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-01-25 02:35:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-01-25 02:35:39 +0300 |
commit | e15445f0f8f95f1547798b886b002146d282c006 (patch) | |
tree | d29b49d8d7d0c8d997cbd58ce3733dba5c2c5a9a /src/gui/viewport.h | |
parent | 992f105f78fb0e4c42fcc7941e289a2348a3ccaf (diff) | |
download | plus-e15445f0f8f95f1547798b886b002146d282c006.tar.gz plus-e15445f0f8f95f1547798b886b002146d282c006.tar.bz2 plus-e15445f0f8f95f1547798b886b002146d282c006.tar.xz plus-e15445f0f8f95f1547798b886b002146d282c006.zip |
Save camera mode before speaking with npc and restore after.
Diffstat (limited to 'src/gui/viewport.h')
-rw-r--r-- | src/gui/viewport.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/viewport.h b/src/gui/viewport.h index 0f56e9426..4ed80ed32 100644 --- a/src/gui/viewport.h +++ b/src/gui/viewport.h @@ -248,6 +248,12 @@ class Viewport : public WindowContainer, public gcn::MouseListener, int getCameraRelativeY() { return mCameraRelativeY; } + void setCameraRelativeX(int n) + { mCameraRelativeX = n; } + + void setCameraRelativeY(int n) + { mCameraRelativeY = n; } + bool isPopupMenuVisible(); void moveCameraToActor(int actorId, int x = 0, int y = 0); |