diff options
author | Gilbert Gonzales <gilbert@lindenlab.com> | 2012-09-13 11:22:41 -0700 |
---|---|---|
committer | Gilbert Gonzales <gilbert@lindenlab.com> | 2012-09-13 11:22:41 -0700 |
commit | 2084d33c1ec827b4e8d975a3bf1232e971f704e2 (patch) | |
tree | 05aa294be59e490bb33bbbb020adeae69a7ff08a /indra/newview/llconversationview.cpp | |
parent | 366a265e785ddc5eb5ab01af1bf1b604ece59d88 (diff) |
CHUI-283: Now the information icon only appears upon mousehover. Also the information/speaker icon are right justified.
Diffstat (limited to 'indra/newview/llconversationview.cpp')
-rwxr-xr-x | indra/newview/llconversationview.cpp | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/indra/newview/llconversationview.cpp b/indra/newview/llconversationview.cpp index 9fb4b4f0dc..7b1c9ef912 100755 --- a/indra/newview/llconversationview.cpp +++ b/indra/newview/llconversationview.cpp @@ -138,10 +138,12 @@ LLConversationViewParticipant::LLConversationViewParticipant( const LLConversati void LLConversationViewParticipant::initFromParams(const LLConversationViewParticipant::Params& params) { LLButton::Params info_button_params(params.info_button()); + applyXUILayout(info_button_params, this); LLButton * button = LLUICtrlFactory::create<LLButton>(info_button_params); addChild(button); LLOutputMonitorCtrl::Params output_monitor_params(params.output_monitor()); + applyXUILayout(output_monitor_params, this); LLOutputMonitorCtrl * outputMonitor = LLUICtrlFactory::create<LLOutputMonitorCtrl>(output_monitor_params); addChild(outputMonitor); } @@ -150,9 +152,10 @@ BOOL LLConversationViewParticipant::postBuild() { mInfoBtn = getChild<LLButton>("info_btn"); mInfoBtn->setClickedCallback(boost::bind(&LLConversationViewParticipant::onInfoBtnClick, this)); - + mInfoBtn->setVisible(false); + mSpeakingIndicator = getChild<LLOutputMonitorCtrl>("speaking_indicator"); - + LLFolderViewItem::postBuild(); return TRUE; } @@ -179,8 +182,8 @@ void LLConversationViewParticipant::addToFolder(LLFolderViewFolder* folder) if(vmi) { mSpeakingIndicator->setSpeakerId(mUUID, - vmi->getUUID()); //set the session id -} + vmi->getUUID()); //set the session id + } } void LLConversationViewParticipant::onInfoBtnClick() @@ -188,5 +191,17 @@ void LLConversationViewParticipant::onInfoBtnClick() LLFloaterReg::showInstance("inspect_avatar", LLSD().with("avatar_id", mUUID)); } +void LLConversationViewParticipant::onMouseEnter(S32 x, S32 y, MASK mask) +{ + mInfoBtn->setVisible(true); + LLFolderViewItem::onMouseEnter(x, y, mask); +} + +void LLConversationViewParticipant::onMouseLeave(S32 x, S32 y, MASK mask) +{ + mInfoBtn->setVisible(false); + LLFolderViewItem::onMouseEnter(x, y, mask); +} + // EOF |