summaryrefslogtreecommitdiff
path: root/indra/newview/llbottomtray.cpp
diff options
context:
space:
mode:
authorRichard Linden <none@none>2011-02-23 16:44:04 -0800
committerRichard Linden <none@none>2011-02-23 16:44:04 -0800
commit20ad5181babd7662bddf95b94bb25cc522d6186d (patch)
tree9c22029f28fb8c049a53fa27c6aa0f132368d3a7 /indra/newview/llbottomtray.cpp
parent66de8ba97f058a4017f56d100a40a1d3b4e843c0 (diff)
SOCIAL-551 WIP Add buttons to open people and profile windows
bottom tray button now toggles profile window
Diffstat (limited to 'indra/newview/llbottomtray.cpp')
-rw-r--r--indra/newview/llbottomtray.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/llbottomtray.cpp b/indra/newview/llbottomtray.cpp
index 35e4548483..da636068dc 100644
--- a/indra/newview/llbottomtray.cpp
+++ b/indra/newview/llbottomtray.cpp
@@ -38,7 +38,9 @@
#include "lltexteditor.h"
// newview includes
+#include "llagent.h"
#include "llagentcamera.h"
+#include "llavataractions.h"
#include "llchiclet.h"
#include "llfloatercamera.h"
#include "llhints.h"
@@ -812,6 +814,7 @@ void LLBottomTray::draw()
LLRect rect = mLandingTab->calcScreenRect();
mImageDragIndication->draw(rect.mLeft - w/2, rect.getHeight(), w, h);
}
+ getChild<LLButton>("show_profile_btn")->setToggleState(LLAvatarActions::profileVisible(gAgent.getID()));
}
bool LLBottomTray::onContextMenuItemEnabled(const LLSD& userdata)