summaryrefslogtreecommitdiff
path: root/indra/newview/llpathfindingmanager.cpp
diff options
context:
space:
mode:
authorTodd Stinson <stinson@lindenlab.com>2012-04-27 17:08:33 -0700
committerTodd Stinson <stinson@lindenlab.com>2012-04-27 17:08:33 -0700
commit932921766740655de84108970095ca17d24c5829 (patch)
tree054fefb01ed02d3174daf32f1d39b023c1c5376c /indra/newview/llpathfindingmanager.cpp
parent1bba68c920315fc2a09cda6e2de35d0ea42a9c8b (diff)
PATH-585: Adding an initial notification for when a server-side automatic unfreeze occurs.
Diffstat (limited to 'indra/newview/llpathfindingmanager.cpp')
-rw-r--r--indra/newview/llpathfindingmanager.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/newview/llpathfindingmanager.cpp b/indra/newview/llpathfindingmanager.cpp
index e754e77588..59cfc398f2 100644
--- a/indra/newview/llpathfindingmanager.cpp
+++ b/indra/newview/llpathfindingmanager.cpp
@@ -42,6 +42,9 @@
#include "llpathfindinglinksetlist.h"
#include "llpathfindingcharacterlist.h"
#include "llhttpnode.h"
+#include "llnotificationsutil.h"
+#include "lltrans.h"
+#include "llweb.h"
#include <boost/function.hpp>
#include <boost/signals2.hpp>
@@ -663,6 +666,17 @@ void LLPathfindingManager::handleAgentStateUpdate(const LLSD &pContent)
EAgentState agentState = (pContent.get(ALTER_NAVMESH_OBJECTS_FIELD).asBoolean() ? kAgentStateUnfrozen : kAgentStateFrozen);
setAgentState(agentState);
+
+ LLSD substitutions, payload;
+ LLNotificationsUtil::add("AutomaticAgentStateUnfreeze", substitutions, payload, boost::bind(&LLPathfindingManager::handleAgentStateUserNotification, this, _1, _2));
+}
+
+void LLPathfindingManager::handleAgentStateUserNotification(const LLSD &pNotification, const LLSD &pResponse)
+{
+ if (LLNotificationsUtil::getSelectedOption(pNotification, pResponse) == 1)
+ {
+ LLWeb::loadURL(LLTrans::getString("Pathfinding_Wiki_URL"));
+ }
}
std::string LLPathfindingManager::getNavMeshStatusURLForRegion(LLViewerRegion *pRegion) const