diff options
author | prep <prep@lindenlab.com> | 2012-06-13 11:31:38 -0400 |
---|---|---|
committer | prep <prep@lindenlab.com> | 2012-06-13 11:31:38 -0400 |
commit | 9215c682d23d4b977f289c9700b24f3bf2d20b03 (patch) | |
tree | 06bb868a27825720bfb49d554a135481eec7b2db /indra/newview/llpanelnavmeshrebake.cpp | |
parent | d7b9af3ab398aedde1229e081c2b245c20a3c6d5 (diff) |
Added a baking button
Diffstat (limited to 'indra/newview/llpanelnavmeshrebake.cpp')
-rw-r--r-- | indra/newview/llpanelnavmeshrebake.cpp | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/indra/newview/llpanelnavmeshrebake.cpp b/indra/newview/llpanelnavmeshrebake.cpp index 99b2bf288c..9281c08059 100644 --- a/indra/newview/llpanelnavmeshrebake.cpp +++ b/indra/newview/llpanelnavmeshrebake.cpp @@ -44,7 +44,8 @@ #include "llpanel.h" LLPanelNavMeshRebake::LLPanelNavMeshRebake() -: mNavMeshRebakeButton(NULL) +: mNavMeshRebakeButton( NULL ) +, mNavMeshBakingButton( NULL ) , mAttached(false) { // make sure we have the only instance of this class @@ -87,11 +88,17 @@ void LLPanelNavMeshRebake::clearMode( ESNavMeshRebakeMode mode ) BOOL LLPanelNavMeshRebake::postBuild() { + //Rebake mNavMeshRebakeButton = getChild<LLButton>("navmesh_btn"); mNavMeshRebakeButton->setCommitCallback(boost::bind(&LLPanelNavMeshRebake::onNavMeshRebakeClick, this)); mNavMeshRebakeButton->setVisible( TRUE ); LLHints::registerHintTarget("navmesh_btn", mNavMeshRebakeButton->getHandle()); - + + //Baking + mNavMeshBakingButton = getChild<LLButton>("navmesh_btn_baking"); + mNavMeshBakingButton->setCommitCallback(boost::bind(&LLPanelNavMeshRebake::onNavMeshRebakeClick, this)); + mNavMeshBakingButton->setVisible( FALSE ); + LLHints::registerHintTarget("navmesh_btn_baking", mNavMeshBakingButton->getHandle()); return TRUE; } @@ -129,11 +136,7 @@ LLPanelNavMeshRebake* LLPanelNavMeshRebake::getPanel() { LLPanelNavMeshRebake* panel = new LLPanelNavMeshRebake(); panel->buildFromFile("panel_navmesh_rebake.xml"); - panel->setVisible(FALSE); - - llinfos << "Build LLPanelNavMeshRebake panel" << llendl; - //prep#panel->updatePosition(); return panel; } @@ -141,7 +144,8 @@ LLPanelNavMeshRebake* LLPanelNavMeshRebake::getPanel() void LLPanelNavMeshRebake::onNavMeshRebakeClick() { setFocus(FALSE); - mNavMeshRebakeButton->setVisible(FALSE); + mNavMeshRebakeButton->setVisible( FALSE ); + mNavMeshBakingButton->setVisible( TRUE ); } /** |