From 7ba21ac4fd7eae71fe618952c069bca169b41841 Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Wed, 5 Dec 2012 12:06:10 -0500 Subject: [PATCH] Show Highlight and Edit Axis at Root on build floater Thanks for the help, Naudia Nadezda! --- indra/newview/llfloatertools.cpp | 6 ++++++ indra/newview/llfloatertools.h | 2 ++ .../skins/default/xui/en-us/floater_tools.xml | 18 +++++++++++------- 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/indra/newview/llfloatertools.cpp b/indra/newview/llfloatertools.cpp index 1219176d6..f52b0960c 100644 --- a/indra/newview/llfloatertools.cpp +++ b/indra/newview/llfloatertools.cpp @@ -277,6 +277,8 @@ BOOL LLFloaterTools::postBuild() mComboGridMode = getChild("combobox grid mode"); childSetCommitCallback("combobox grid mode",commit_grid_mode, this); + mCheckShowHighlight = getChild("checkbox show highlight"); + mCheckActualRoot = getChild("checkbox actual root"); // // Create Buttons // @@ -382,6 +384,8 @@ LLFloaterTools::LLFloaterTools() mCheckStretchUniform(NULL), mCheckStretchTexture(NULL), mCheckLimitDrag(NULL), + mCheckShowHighlight(NULL), + mCheckActualRoot(NULL), mBtnRotateLeft(NULL), mBtnRotateReset(NULL), @@ -712,6 +716,8 @@ void LLFloaterTools::updatePopup(LLCoordGL center, MASK mask) if (mCheckStretchUniform) mCheckStretchUniform->setVisible( edit_visible ); if (mCheckStretchTexture) mCheckStretchTexture->setVisible( edit_visible ); if (mCheckLimitDrag) mCheckLimitDrag->setVisible( edit_visible ); + if (mCheckShowHighlight) mCheckShowHighlight->setVisible(edit_visible); + if (mCheckActualRoot) mCheckActualRoot->setVisible(edit_visible); // Create buttons BOOL create_visible = (tool == LLToolCompCreate::getInstance()); diff --git a/indra/newview/llfloatertools.h b/indra/newview/llfloatertools.h index 085a2774e..90cdf83eb 100644 --- a/indra/newview/llfloatertools.h +++ b/indra/newview/llfloatertools.h @@ -143,6 +143,8 @@ public: LLCheckBoxCtrl* mCheckStretchUniform; LLCheckBoxCtrl* mCheckStretchTexture; LLCheckBoxCtrl* mCheckLimitDrag; + LLCheckBoxCtrl* mCheckShowHighlight; + LLCheckBoxCtrl* mCheckActualRoot; LLButton *mBtnRotateLeft; diff --git a/indra/newview/skins/default/xui/en-us/floater_tools.xml b/indra/newview/skins/default/xui/en-us/floater_tools.xml index e2c6803dd..d381d3311 100644 --- a/indra/newview/skins/default/xui/en-us/floater_tools.xml +++ b/indra/newview/skins/default/xui/en-us/floater_tools.xml @@ -99,9 +99,9 @@ Reference - + + -