Skip to content
Snippets Groups Projects
Commit fddc7d85 authored by Lynx Linden's avatar Lynx Linden
Browse files
parents 2073945b a2c08d8e
No related branches found
No related tags found
No related merge requests found
...@@ -278,7 +278,7 @@ void LLInspectAvatar::onOpen(const LLSD& data) ...@@ -278,7 +278,7 @@ void LLInspectAvatar::onOpen(const LLSD& data)
getChild<LLUICtrl>("gear_self_btn")->setVisible(self); getChild<LLUICtrl>("gear_self_btn")->setVisible(self);
getChild<LLUICtrl>("gear_btn")->setVisible(!self); getChild<LLUICtrl>("gear_btn")->setVisible(!self);
// Position the inspector relative to the mouse cursor // Position the inspector relative to the mouse cursor
// Similar to how tooltips are positioned // Similar to how tooltips are positioned
// See LLToolTipMgr::createToolTip // See LLToolTipMgr::createToolTip
...@@ -518,13 +518,17 @@ void LLInspectAvatar::updateVolumeSlider() ...@@ -518,13 +518,17 @@ void LLInspectAvatar::updateVolumeSlider()
bool is_muted = LLMuteList::getInstance()-> bool is_muted = LLMuteList::getInstance()->
isMuted(mAvatarID, LLMute::flagVoiceChat); isMuted(mAvatarID, LLMute::flagVoiceChat);
bool voice_enabled = gVoiceClient->getVoiceEnabled(mAvatarID); bool voice_enabled = gVoiceClient->getVoiceEnabled(mAvatarID);
bool is_self = (mAvatarID == gAgent.getID());
LLUICtrl* mute_btn = getChild<LLUICtrl>("mute_btn"); LLUICtrl* mute_btn = getChild<LLUICtrl>("mute_btn");
mute_btn->setEnabled( voice_enabled ); mute_btn->setEnabled( voice_enabled );
mute_btn->setValue( is_muted ); mute_btn->setValue( is_muted );
mute_btn->setVisible( voice_enabled && !is_self );
LLUICtrl* volume_slider = getChild<LLUICtrl>("volume_slider"); LLUICtrl* volume_slider = getChild<LLUICtrl>("volume_slider");
volume_slider->setEnabled( voice_enabled && !is_muted ); volume_slider->setEnabled( voice_enabled && !is_muted );
volume_slider->setVisible( voice_enabled && !is_self );
const F32 DEFAULT_VOLUME = 0.5f; const F32 DEFAULT_VOLUME = 0.5f;
F32 volume; F32 volume;
if (is_muted) if (is_muted)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment