diff options
author | angela <angela@lindenlab.com> | 2009-11-30 18:36:33 +0800 |
---|---|---|
committer | angela <angela@lindenlab.com> | 2009-11-30 18:36:33 +0800 |
commit | 12cb41912110a423d9005df7377c4d9e34a84e51 (patch) | |
tree | 25f78f2dcc44c1f775fc24704cfd2fae88d18c6b /indra/newview/llnearbychat.cpp | |
parent | 855a02554f0181227ac20633b2fcc6af3958e444 (diff) |
EXT-1881 [BSI] Log (Nearby Chat) floater should turn semi-transparent when it loses focus.
Diffstat (limited to 'indra/newview/llnearbychat.cpp')
-rw-r--r-- | indra/newview/llnearbychat.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/indra/newview/llnearbychat.cpp b/indra/newview/llnearbychat.cpp index 80a6cc343f..baf4d4bfe3 100644 --- a/indra/newview/llnearbychat.cpp +++ b/indra/newview/llnearbychat.cpp @@ -224,3 +224,21 @@ void LLNearbyChat::getAllowedRect(LLRect& rect) { rect = gViewerWindow->getWorldViewRectScaled(); } + + +//////////////////////////////////////////////////////////////////////////////// +// +void LLNearbyChat::onFocusReceived() +{ + setBackgroundOpaque(true); + LLPanel::onFocusReceived(); +} + +//////////////////////////////////////////////////////////////////////////////// +// +void LLNearbyChat::onFocusLost() +{ + setBackgroundOpaque(false); + LLPanel::onFocusLost(); +} + |