diff options
author | Todd Stinson <stinson@lindenlab.com> | 2012-01-23 18:27:10 -0800 |
---|---|---|
committer | Todd Stinson <stinson@lindenlab.com> | 2012-01-23 18:27:10 -0800 |
commit | 3b4d841ee254186d881490cfadbdfbac6dcdf6ad (patch) | |
tree | 6c9f5270613250d5939fb762b06c7c5509a9ab1c /indra/newview/llfloaterpathfindingconsole.cpp | |
parent | 3f330d2902aaab3c62ebd0c830fce61c6f1e4524 (diff) |
Introducing a hacky way to get some reporting on the downloading status of the navmesh into the console. This needs to be seriously refactored.
Diffstat (limited to 'indra/newview/llfloaterpathfindingconsole.cpp')
-rw-r--r-- | indra/newview/llfloaterpathfindingconsole.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/newview/llfloaterpathfindingconsole.cpp b/indra/newview/llfloaterpathfindingconsole.cpp index 7b8ede410c..63b863937e 100644 --- a/indra/newview/llfloaterpathfindingconsole.cpp +++ b/indra/newview/llfloaterpathfindingconsole.cpp @@ -307,6 +307,18 @@ void LLFloaterPathfindingConsole::setTerrainMaterialD(F32 pTerrainMaterial) mTerrainMaterialD->setValue(LLSD(pTerrainMaterial));
}
+void LLFloaterPathfindingConsole::setHasNavMeshReceived()
+{
+ std::string str = getString("navmesh_fetch_complete_available");
+ mPathfindingStatus->setText((LLStringExplicit)str);
+}
+
+void LLFloaterPathfindingConsole::setHasNoNavMesh()
+{
+ std::string str = getString("navmesh_fetch_complete_none");
+ mPathfindingStatus->setText((LLStringExplicit)str);
+}
+
LLFloaterPathfindingConsole::LLFloaterPathfindingConsole(const LLSD& pSeed)
: LLFloater(pSeed),
mShowNavMeshCheckBox(NULL),
@@ -324,6 +336,7 @@ LLFloaterPathfindingConsole::LLFloaterPathfindingConsole(const LLSD& pSeed) mTerrainMaterialD(NULL),
mNavMeshDownloadObserver()
{
+ mNavMeshDownloadObserver.setPathfindingConsole(this);
}
LLFloaterPathfindingConsole::~LLFloaterPathfindingConsole()
|