From 455899b242478518b181f94823332235950270dd Mon Sep 17 00:00:00 2001 From: Todd Stinson Date: Mon, 23 Jan 2012 17:36:22 -0800 Subject: Adding some initial reporting on the pathfinding console detailing the state of the navmesh download. --- indra/newview/llfloaterpathfindingconsole.cpp | 18 ++++++++++++++++-- indra/newview/llfloaterpathfindingconsole.h | 2 ++ .../default/xui/en/floater_pathfinding_console.xml | 9 +++++++-- 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/indra/newview/llfloaterpathfindingconsole.cpp b/indra/newview/llfloaterpathfindingconsole.cpp index 269bef22fe..7b8ede410c 100644 --- a/indra/newview/llfloaterpathfindingconsole.cpp +++ b/indra/newview/llfloaterpathfindingconsole.cpp @@ -35,6 +35,7 @@ #include "llradiogroup.h" #include "llsliderctrl.h" #include "lllineeditor.h" +#include "lltextbase.h" #include "lltextvalidate.h" #include "llnavmeshstation.h" #include "llviewerregion.h" @@ -95,6 +96,9 @@ BOOL LLFloaterPathfindingConsole::postBuild() llassert(mCharacterTypeRadioGroup != NULL); mCharacterTypeRadioGroup->setCommitCallback(boost::bind(&LLFloaterPathfindingConsole::onCharacterTypeSwitch, this)); + mPathfindingStatus = findChild("pathfinding_status"); + llassert(mPathfindingStatus != NULL); + mTerrainMaterialA = findChild("terrain_material_a"); llassert(mTerrainMaterialA != NULL); mTerrainMaterialA->setCommitCallback(boost::bind(&LLFloaterPathfindingConsole::onTerrainMaterialASet, this)); @@ -313,6 +317,7 @@ LLFloaterPathfindingConsole::LLFloaterPathfindingConsole(const LLSD& pSeed) mPathSelectionRadioGroup(NULL), mCharacterWidthSlider(NULL), mCharacterTypeRadioGroup(NULL), + mPathfindingStatus(NULL), mTerrainMaterialA(NULL), mTerrainMaterialB(NULL), mTerrainMaterialC(NULL), @@ -339,7 +344,11 @@ void LLFloaterPathfindingConsole::onOpen(const LLSD& pKey) //prep# end test if ( LLPathingLib::getInstance() == NULL ) { - llinfos<<"No implementation of pathing library."<setText((LLStringExplicit)str, styleParams); + llwarns <<"Errror: cannout find pathing library implementation."<getCapability( capability ); if ( !url.empty() ) { - llinfos<<"Region has required caps of type ["<setText((LLStringExplicit)str); LLNavMeshStation::getInstance()->setNavMeshDownloadURL( url ); LLNavMeshStation::getInstance()->downloadNavMeshSrc( mNavMeshDownloadObserver.getObserverHandle() ); } else { + std::string str = getString("navmesh_region_not_enabled"); + LLStyle::Params styleParams; + styleParams.color = LLUIColorTable::instance().getColor("DrYellow"); + mPathfindingStatus->setText((LLStringExplicit)str, styleParams); llinfos<<"Region has does not required caps of type ["< + + Downloading the navmesh ... + Navmesh received. + Pathfinding is not enabled for this region + Cannot find pathing library implementation - Result: No path found.