summaryrefslogtreecommitdiff
path: root/indra/newview/llbottomtray.cpp
diff options
context:
space:
mode:
authorRichard Linden <none@none>2011-02-24 18:37:30 -0800
committerRichard Linden <none@none>2011-02-24 18:37:30 -0800
commit83e92c6190e0832f85c40e79883e8b1607ad8db2 (patch)
treedecf43a4d05e69f9b5860314307d30ef6c99b3ab /indra/newview/llbottomtray.cpp
parent874da4cde8914de81992505ade8bc7f106a6019a (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/llbottomtray.cpp')
-rw-r--r--indra/newview/llbottomtray.cpp12
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)