From 0e7311caa73e598e8a2df626c67a74bdff23446e Mon Sep 17 00:00:00 2001 From: prep Date: Thu, 29 Mar 2012 11:20:32 -0400 Subject: Exposed star(valid/invalid) and test path colors. Refactored path drawing code to use ll f()'s --- indra/newview/app_settings/settings.xml | 79 ++++++++++++++++++++++++++- indra/newview/llfloaterpathfindingconsole.cpp | 12 ++++ 2 files changed, 90 insertions(+), 1 deletion(-) (limited to 'indra') diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 4c673e08db..9dcf43cd8d 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -13765,6 +13765,83 @@ Value 255 - + StarValidColorRGB + + Comment + yay! + Persist + 1 + Type + Vector3 + Value + + 214.0 + 212.0 + 212.0 + + + StarValidColorA + + Comment + yay! + Persist + 1 + Type + F32 + Value + 255 + + StarInvalidRGB + + Comment + yay! + Persist + 1 + Type + Vector3 + Value + + 255.0 + 0.0 + 255.0 + + + StarInvalidA + + Comment + yay! + Persist + 1 + Type + F32 + Value + 255 + + TestPathColorRGB + + Comment + yay! + Persist + 1 + Type + Vector3 + Value + + 96.0 + 96.0 + 96.0 + + + TestPathColorA + + Comment + yay! + Persist + 1 + Type + F32 + Value + 255 + diff --git a/indra/newview/llfloaterpathfindingconsole.cpp b/indra/newview/llfloaterpathfindingconsole.cpp index fd50b4370e..1f73f10b9b 100644 --- a/indra/newview/llfloaterpathfindingconsole.cpp +++ b/indra/newview/llfloaterpathfindingconsole.cpp @@ -1051,6 +1051,18 @@ void LLFloaterPathfindingConsole::fillInColorsForNavMeshVisualization() a = gSavedSettings.getF32("FaceColorA"); colors.mFaceColor= LLColor4U( (U8)in[0],(U8)in[1],(U8)in[2],(U8)a ); + in = gSavedSettings.getVector3("StarValidColorRGB"); + a = gSavedSettings.getF32("StarValidColorA"); + colors.mStarValid= LLColor4U( (U8)in[0],(U8)in[1],(U8)in[2],(U8)a ); + + in = gSavedSettings.getVector3("StarInvalidRGB"); + a = gSavedSettings.getF32("StarInvalidA"); + colors.mStarInvalid= LLColor4U( (U8)in[0],(U8)in[1],(U8)in[2],(U8)a ); + + in = gSavedSettings.getVector3("TestPathColorRGB"); + a = gSavedSettings.getF32("TestPathColorA"); + colors.mTestPath= LLColor4U( (U8)in[0],(U8)in[1],(U8)in[2],(U8)a ); + in = gSavedSettings.getVector3("NavMeshClearRGB"); colors.mNavMeshClear= LLColor4(in[0], in[1], in[2], 0); -- cgit v1.2.3