diff options
| author | Todd Stinson <stinson@lindenlab.com> | 2012-02-13 17:58:19 -0800 |
|---|---|---|
| committer | Todd Stinson <stinson@lindenlab.com> | 2012-02-13 17:58:19 -0800 |
| commit | 16fa78b1499b6bb68f5038c124953046af690d6c (patch) | |
| tree | 722026f483d27cab444dc1377a41a47743464dd1 /indra/newview/llfloaterpathfindingconsole.h | |
| parent | 06ec2607ce9db7cecee7c76b52cca5f263ef7402 (diff) | |
PATH-284: Implementing the functionality for the new path generation of the new pathfinding console floater design.
Diffstat (limited to 'indra/newview/llfloaterpathfindingconsole.h')
| -rw-r--r-- | indra/newview/llfloaterpathfindingconsole.h | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/indra/newview/llfloaterpathfindingconsole.h b/indra/newview/llfloaterpathfindingconsole.h index a2e247c1c9..5a7edeb126 100644 --- a/indra/newview/llfloaterpathfindingconsole.h +++ b/indra/newview/llfloaterpathfindingconsole.h @@ -29,6 +29,7 @@ #define LL_LLFLOATERPATHFINDINGCONSOLE_H #include "llfloater.h" +#include "llhandle.h" #include "llnavmeshstation.h" #include "LLPathingLib.h" @@ -38,6 +39,7 @@ class LLSliderCtrl; class LLLineEditor; class LLTextBase; class LLCheckBoxCtrl; +class LLTabContainer; class LLFloaterPathfindingConsole : public LLFloater @@ -54,8 +56,11 @@ public: } ECharacterType; virtual BOOL postBuild(); - //Populates a data packet that is forwarded onto the LLPathingSystem - void providePathingData( const LLVector3& point1, const LLVector3& point2 ); + virtual BOOL handleAnyMouseClick(S32 x, S32 y, MASK mask, EClickType clicktype, BOOL down); + + BOOL isGeneratePathMode() const; + + static LLHandle<LLFloaterPathfindingConsole> getInstanceHandle(); F32 getCharacterWidth() const; void setCharacterWidth(F32 pCharacterWidth); @@ -88,15 +93,17 @@ private: void onViewEditLinksetClicked(); void generatePath(); - LLCheckBoxCtrl *mShowNavMeshCheckBox; - LLCheckBoxCtrl *mShowWalkablesCheckBox; - LLCheckBoxCtrl *mShowStaticObstaclesCheckBox; - LLCheckBoxCtrl *mShowMaterialVolumesCheckBox; - LLCheckBoxCtrl *mShowExclusionVolumesCheckBox; - LLCheckBoxCtrl *mShowWorldCheckBox; - LLSliderCtrl *mCharacterWidthSlider; - LLRadioGroup *mCharacterTypeRadioGroup; - LLTextBase *mPathfindingStatus; + LLRootHandle<LLFloaterPathfindingConsole> mSelfHandle; + LLCheckBoxCtrl *mShowNavMeshCheckBox; + LLCheckBoxCtrl *mShowWalkablesCheckBox; + LLCheckBoxCtrl *mShowStaticObstaclesCheckBox; + LLCheckBoxCtrl *mShowMaterialVolumesCheckBox; + LLCheckBoxCtrl *mShowExclusionVolumesCheckBox; + LLCheckBoxCtrl *mShowWorldCheckBox; + LLTextBase *mPathfindingStatus; + LLTabContainer *mEditTestTabContainer; + LLSliderCtrl *mCharacterWidthSlider; + LLRadioGroup *mCharacterTypeRadioGroup; LLNavMeshDownloadObserver mNavMeshDownloadObserver[10]; int mCurrentMDO; @@ -106,6 +113,8 @@ private: LLPathingLib::PathingPacket mPathData; bool mHasStartPoint; bool mHasEndPoint; + + static LLHandle<LLFloaterPathfindingConsole> sInstanceHandle; }; #endif // LL_LLFLOATERPATHFINDINGCONSOLE_H |
