From 9897c4de69c57ddeae6b94a857e532c0552865cf Mon Sep 17 00:00:00 2001 From: Todd Stinson Date: Mon, 19 Dec 2011 16:36:00 -0800 Subject: Stubbing out functionality for catching the character width slider changes. --- indra/newview/llfloaterpathfindingconsole.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'indra/newview/llfloaterpathfindingconsole.cpp') diff --git a/indra/newview/llfloaterpathfindingconsole.cpp b/indra/newview/llfloaterpathfindingconsole.cpp index 5fa9d6f3a4..f045eba19b 100644 --- a/indra/newview/llfloaterpathfindingconsole.cpp +++ b/indra/newview/llfloaterpathfindingconsole.cpp @@ -34,6 +34,7 @@ #include "llbutton.h" #include "llcheckboxctrl.h" #include "llradiogroup.h" +#include "llsliderctrl.h" #include "llnavmeshstation.h" #include "llviewerregion.h" @@ -71,6 +72,10 @@ BOOL LLFloaterPathfindingConsole::postBuild() llassert(mPathSelectionRadioGroup != NULL); mPathSelectionRadioGroup ->setCommitCallback(boost::bind(&LLFloaterPathfindingConsole::onPathSelectionSwitch, this)); + mCharacterWidthSlider = findChild("character_width"); + llassert(mCharacterWidthSlider != NULL); + mCharacterWidthSlider->setCommitCallback(boost::bind(&LLFloaterPathfindingConsole::onCharacterWidthSet, this)); + return LLFloater::postBuild(); } @@ -82,6 +87,7 @@ LLFloaterPathfindingConsole::LLFloaterPathfindingConsole(const LLSD& pSeed) mShowWaterPlaneCheckBox(NULL), mRegionOverlayDisplayRadioGroup(NULL), mPathSelectionRadioGroup(NULL), + mCharacterWidthSlider(NULL), mNavmeshDownloadObserver() { } @@ -219,6 +225,13 @@ void LLFloaterPathfindingConsole::onPathSelectionSwitch() } } +void LLFloaterPathfindingConsole::onCharacterWidthSet() +{ + F32 characterWidth = getCharacterWidth(); + llwarns << "functionality has not yet been implemented to set " << mCharacterWidthSlider->getName() + << " to the value (" << characterWidth << ")" << llendl; +} + void LLFloaterPathfindingConsole::onViewEditLinksetClicked() { LLFloaterPathfindingLinksets::openLinksetsEditor(); @@ -262,3 +275,8 @@ LLFloaterPathfindingConsole::EPathSelectionState LLFloaterPathfindingConsole::ge return pathSelectionState; } + +F32 LLFloaterPathfindingConsole::getCharacterWidth() const +{ + return mCharacterWidthSlider->getValueF32(); +} \ No newline at end of file -- cgit v1.2.3