summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-31 23:54:59 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-31 23:54:59 +0300
commit4960f1bd01889d04915b76837dfc3f74ef07ac79 (patch)
tree2ffa4bab4e242c6e7a709ab050c3bbeebbde4354
parent1f96c689d074b5986243a8671154c0374f51af43 (diff)
downloadplus-4960f1bd01889d04915b76837dfc3f74ef07ac79.tar.gz
plus-4960f1bd01889d04915b76837dfc3f74ef07ac79.tar.bz2
plus-4960f1bd01889d04915b76837dfc3f74ef07ac79.tar.xz
plus-4960f1bd01889d04915b76837dfc3f74ef07ac79.zip
Add in minimap context menu option to return camera to default state.
-rw-r--r--src/gui/popups/popupmenu.cpp7
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)
{