summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterpathfindingconsole.cpp
diff options
context:
space:
mode:
authorprep <none@none>2012-03-21 09:53:32 -0400
committerprep <none@none>2012-03-21 09:53:32 -0400
commit154e569923d0caf99fb0d24af8475731f5ceaf33 (patch)
treedbb397f25b7e02c941e726bd6d0531e47cb3bdee /indra/newview/llfloaterpathfindingconsole.cpp
parentd3550dfcd64cfc182fd120338d3e7eb25ac339af (diff)
Path-282: Added support for viewing the walkability map for various character types
Diffstat (limited to 'indra/newview/llfloaterpathfindingconsole.cpp')
-rw-r--r--indra/newview/llfloaterpathfindingconsole.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/indra/newview/llfloaterpathfindingconsole.cpp b/indra/newview/llfloaterpathfindingconsole.cpp
index ae08a166a1..f830dc1fac 100644
--- a/indra/newview/llfloaterpathfindingconsole.cpp
+++ b/indra/newview/llfloaterpathfindingconsole.cpp
@@ -368,6 +368,35 @@ LLFloaterPathfindingConsole::ERenderHeatmapType LLFloaterPathfindingConsole::get
return renderHeatmapType;
}
+int LLFloaterPathfindingConsole::getHeatMapType() const
+{
+ //converts the pathfinding console values to the navmesh filter values
+
+ int renderHeatmapType = 4; //none
+
+ switch ( mShowNavMeshWalkabilityComboBox->getValue().asInteger() )
+ {
+ case XUI_RENDER_HEATMAP_A :
+ renderHeatmapType = 0;
+ break;
+ case XUI_RENDER_HEATMAP_B :
+ renderHeatmapType = 1;
+ break;
+ case XUI_RENDER_HEATMAP_C :
+ renderHeatmapType = 2;
+ break;
+ case XUI_RENDER_HEATMAP_D :
+ renderHeatmapType = 3;
+ break;
+ default :
+ renderHeatmapType = 4;
+ break;
+ }
+
+ return renderHeatmapType;
+}
+
+
void LLFloaterPathfindingConsole::setRenderHeatmapType(ERenderHeatmapType pRenderHeatmapType)
{
LLSD comboBoxValue;