From 4960f1bd01889d04915b76837dfc3f74ef07ac79 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 31 May 2016 23:54:59 +0300 Subject: Add in minimap context menu option to return camera to default state. --- src/gui/popups/popupmenu.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gui/popups') 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) { -- cgit v1.2.3-70-g09d2