diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-05-31 23:54:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-05-31 23:54:59 +0300 |
commit | 4960f1bd01889d04915b76837dfc3f74ef07ac79 (patch) | |
tree | 2ffa4bab4e242c6e7a709ab050c3bbeebbde4354 | |
parent | 1f96c689d074b5986243a8671154c0374f51af43 (diff) | |
download | manaplus-4960f1bd01889d04915b76837dfc3f74ef07ac79.tar.gz manaplus-4960f1bd01889d04915b76837dfc3f74ef07ac79.tar.bz2 manaplus-4960f1bd01889d04915b76837dfc3f74ef07ac79.tar.xz manaplus-4960f1bd01889d04915b76837dfc3f74ef07ac79.zip |
Add in minimap context menu option to return camera to default state.
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 9a3f7f753..620d9c050 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -25,6 +25,7 @@ #include "actormanager.h" #include "configuration.h" #include "party.h" +#include "settings.h" #include "being/flooritem.h" #include "being/localplayer.h" @@ -742,6 +743,12 @@ void PopupMenu::showMapPopup(const int x, const int y, // TRANSLATORS: popup menu item // TRANSLATORS: move camera to map item mBrowserBox->addRow("/movecamera 'X' 'Y'", _("Move camera")); + if (settings.cameraMode != 0) + { + // TRANSLATORS: popup menu item + // TRANSLATORS: restore camera to default view + mBrowserBox->addRow("/restorecamera", _("Restore camera")); + } mBrowserBox->addRow("##3---"); if (isMinimap) { |