diff options
author | Jacek Antonelli | 2008-08-15 23:45:11 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:11 -0500 |
commit | 215f423cbe18fe9ca14a26caef918d303bad28ff (patch) | |
tree | 0743442b286216cc8e19aa487c26f4e9345ffd64 /linden/indra/newview/llfloateractivespeakers.cpp | |
parent | Second Life viewer sources 1.18.3.5-RC (diff) | |
download | meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.zip meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.gz meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.bz2 meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.xz |
Second Life viewer sources 1.18.4.0-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfloateractivespeakers.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/linden/indra/newview/llfloateractivespeakers.cpp b/linden/indra/newview/llfloateractivespeakers.cpp index 1c3990e..fc9ab0e 100644 --- a/linden/indra/newview/llfloateractivespeakers.cpp +++ b/linden/indra/newview/llfloateractivespeakers.cpp | |||
@@ -2,6 +2,8 @@ | |||
2 | * @file llfloateractivespeakers.cpp | 2 | * @file llfloateractivespeakers.cpp |
3 | * @brief Management interface for muting and controlling volume of residents currently speaking | 3 | * @brief Management interface for muting and controlling volume of residents currently speaking |
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2005&license=viewergpl$ | ||
6 | * | ||
5 | * Copyright (c) 2005-2007, Linden Research, Inc. | 7 | * Copyright (c) 2005-2007, Linden Research, Inc. |
6 | * | 8 | * |
7 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
@@ -24,6 +26,7 @@ | |||
24 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | 26 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO |
25 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 27 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
26 | * COMPLETENESS OR PERFORMANCE. | 28 | * COMPLETENESS OR PERFORMANCE. |
29 | * $/LicenseInfo$ | ||
27 | */ | 30 | */ |
28 | 31 | ||
29 | #include "llviewerprecompiledheaders.h" | 32 | #include "llviewerprecompiledheaders.h" |
@@ -285,9 +288,9 @@ void LLPanelActiveSpeakers::refreshSpeakers() | |||
285 | // } | 288 | // } |
286 | //} | 289 | //} |
287 | 290 | ||
288 | row["columns"][0]["value"] = speakerp->mStatus == LLSpeaker::STATUS_MUTED ? | 291 | row["columns"][0]["value"] = (speakerp->mStatus == LLSpeaker::STATUS_MUTED) ? |
289 | gViewerArt.getString("mute_icon.tga") : icon_image_id; | 292 | gViewerArt.getString("mute_icon.tga") : icon_image_id; |
290 | if (speakerp->mStatus > LLSpeaker::STATUS_VOICE_ACTIVE) // if voice is disabled for this speaker | 293 | if (speakerp->mStatus > LLSpeaker::STATUS_VOICE_ACTIVE && speakerp->mStatus != LLSpeaker::STATUS_MUTED) // if voice is disabled for this speaker |
291 | { | 294 | { |
292 | // non voice speakers have hidden icons, render as transparent | 295 | // non voice speakers have hidden icons, render as transparent |
293 | row["columns"][0]["color"] = LLColor4(0.f, 0.f, 0.f, 0.f).getValue(); | 296 | row["columns"][0]["color"] = LLColor4(0.f, 0.f, 0.f, 0.f).getValue(); |
@@ -340,7 +343,6 @@ void LLPanelActiveSpeakers::refreshSpeakers() | |||
340 | mMuteVoiceCtrl->setValue(gMuteListp->isMuted(selected_id, LLMute::flagVoiceChat)); | 343 | mMuteVoiceCtrl->setValue(gMuteListp->isMuted(selected_id, LLMute::flagVoiceChat)); |
341 | mMuteVoiceCtrl->setEnabled(selected_id.notNull() | 344 | mMuteVoiceCtrl->setEnabled(selected_id.notNull() |
342 | && selected_id != gAgent.getID() | 345 | && selected_id != gAgent.getID() |
343 | && mSpeakerMgr->isVoiceActive() | ||
344 | && (speakerp.notNull() && speakerp->mType == LLSpeaker::SPEAKER_AGENT)); | 346 | && (speakerp.notNull() && speakerp->mType == LLSpeaker::SPEAKER_AGENT)); |
345 | } | 347 | } |
346 | if (mMuteTextCtrl) | 348 | if (mMuteTextCtrl) |
@@ -351,7 +353,6 @@ void LLPanelActiveSpeakers::refreshSpeakers() | |||
351 | childSetValue("speaker_volume", gVoiceClient->getUserVolume(selected_id)); | 353 | childSetValue("speaker_volume", gVoiceClient->getUserVolume(selected_id)); |
352 | childSetEnabled("speaker_volume", selected_id.notNull() | 354 | childSetEnabled("speaker_volume", selected_id.notNull() |
353 | && selected_id != gAgent.getID() | 355 | && selected_id != gAgent.getID() |
354 | && mSpeakerMgr->isVoiceActive() | ||
355 | && (speakerp.notNull() && speakerp->mType == LLSpeaker::SPEAKER_AGENT)); | 356 | && (speakerp.notNull() && speakerp->mType == LLSpeaker::SPEAKER_AGENT)); |
356 | if (mProfileBtn) | 357 | if (mProfileBtn) |
357 | { | 358 | { |
@@ -368,7 +369,7 @@ void LLPanelActiveSpeakers::refreshSpeakers() | |||
368 | } | 369 | } |
369 | else | 370 | else |
370 | { | 371 | { |
371 | mNameText->setValue(""); | 372 | mNameText->setValue(LLString::null); |
372 | } | 373 | } |
373 | } | 374 | } |
374 | 375 | ||