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 --- autobuild.xml | 12 ++-- indra/newview/app_settings/settings.xml | 79 ++++++++++++++++++++++++++- indra/newview/llfloaterpathfindingconsole.cpp | 12 ++++ 3 files changed, 96 insertions(+), 7 deletions(-) diff --git a/autobuild.xml b/autobuild.xml index cae4fbe54e..073a35a4b7 100644 --- a/autobuild.xml +++ b/autobuild.xml @@ -1110,9 +1110,9 @@ archive hash - eafee0cd7753fa6dcebe80e9a4339207 + da502f834ac0fe7a29fdb688288f3316 url - http://s3-proxy.lindenlab.com/private-builds-secondlife-com/hg/repo/stinson_llpathinglibrary/rev/252400/arch/Darwin/installer/llphysicsextensions-0.1-darwin-20120328.tar.bz2 + http://s3-proxy.lindenlab.com/private-builds-secondlife-com/hg/repo/stinson_llpathinglibrary/rev/252424/arch/Darwin/installer/llphysicsextensions-0.1-darwin-20120329.tar.bz2 name darwin @@ -1122,9 +1122,9 @@ archive hash - 391e3db883dbc26c84856333989b36cf + 335195df8bf4c79161cc154ffede1413 url - http://s3-proxy.lindenlab.com/private-builds-secondlife-com/hg/repo/stinson_llpathinglibrary/rev/252400/arch/Linux/installer/llphysicsextensions-0.1-linux-20120329.tar.bz2 + http://s3-proxy.lindenlab.com/private-builds-secondlife-com/hg/repo/stinson_llpathinglibrary/rev/252424/arch/Linux/installer/llphysicsextensions-0.1-linux-20120329.tar.bz2 name linux @@ -1134,9 +1134,9 @@ archive hash - 38d3c076a0b6be7cff52ddcd1abdeeca + 2a1128e6e2c3cdbf7f904fd5f17b88de url - http://s3-proxy.lindenlab.com/private-builds-secondlife-com/hg/repo/stinson_llpathinglibrary/rev/252400/arch/CYGWIN/installer/llphysicsextensions-0.1-windows-20120328.tar.bz2 + http://s3-proxy.lindenlab.com/private-builds-secondlife-com/hg/repo/stinson_llpathinglibrary/rev/252424/arch/CYGWIN/installer/llphysicsextensions-0.1-windows-20120329.tar.bz2 name windows 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