diff options
| author | Richard Linden <none@none> | 2011-02-24 18:37:30 -0800 | 
|---|---|---|
| committer | Richard Linden <none@none> | 2011-02-24 18:37:30 -0800 | 
| commit | 83e92c6190e0832f85c40e79883e8b1607ad8db2 (patch) | |
| tree | decf43a4d05e69f9b5860314307d30ef6c99b3ab /indra/newview | |
| parent | 874da4cde8914de81992505ade8bc7f106a6019a (diff) | |
SOCIAL-551 WIP add buttons to open people and profile windows
people button now toggles according to people window visibility
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/llbottomtray.cpp | 12 | 
1 files changed, 12 insertions, 0 deletions
| diff --git a/indra/newview/llbottomtray.cpp b/indra/newview/llbottomtray.cpp index da636068dc..3d61e13f02 100644 --- a/indra/newview/llbottomtray.cpp +++ b/indra/newview/llbottomtray.cpp @@ -46,6 +46,7 @@  #include "llhints.h"  #include "llimfloater.h" // for LLIMFloater  #include "llnearbychatbar.h" +#include "llsidetray.h"  #include "llspeakbutton.h"  #include "llsplitbutton.h"  #include "llsyswellwindow.h" @@ -815,6 +816,17 @@ void LLBottomTray::draw()  		mImageDragIndication->draw(rect.mLeft - w/2, rect.getHeight(), w, h);  	}  	getChild<LLButton>("show_profile_btn")->setToggleState(LLAvatarActions::profileVisible(gAgent.getID())); + +	LLPanel* panel = LLSideTray::getInstance()->getPanel("panel_people"); +	if (panel && panel->isInVisibleChain()) +	{ +		getChild<LLButton>("show_people_button")->setToggleState(true); +	} +	else +	{ +		getChild<LLButton>("show_people_button")->setToggleState(false); +	} +  }  bool LLBottomTray::onContextMenuItemEnabled(const LLSD& userdata) | 
