Merged in RLVa. Viewer broken!
This commit is contained in:
@@ -51,6 +51,10 @@
|
||||
#include "llworld.h"
|
||||
#include "llappviewer.h"
|
||||
|
||||
// [RLVa:KB]
|
||||
#include "rlvhandler.h"
|
||||
// [/RLVa:KB]
|
||||
|
||||
const F32 SPEAKER_TIMEOUT = 10.f; // seconds of not being on voice channel before removed from list of active speakers
|
||||
const F32 RESORT_TIMEOUT = 5.f; // seconds of mouse inactivity before it's ok to sort regardless of mouse-in-view.
|
||||
const LLColor4 INACTIVE_COLOR(0.3f, 0.3f, 0.3f, 0.5f);
|
||||
@@ -100,6 +104,11 @@ void LLSpeaker::onAvatarNameLookup(const LLUUID& id, const std::string& first, c
|
||||
if (speaker_ptr)
|
||||
{
|
||||
speaker_ptr->mDisplayName = first + " " + last;
|
||||
// [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | Added: RLVa-1.0.0g
|
||||
// TODO-RLVa: this seems to get called per frame which is very likely an LL bug that will eventuall get fixed
|
||||
if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES))
|
||||
speaker_ptr->mDisplayName = RlvStrings::getAnonym(speaker_ptr->mDisplayName);
|
||||
// [/RLVa:KB]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -735,6 +744,13 @@ void LLPanelActiveSpeakers::onVolumeChange(LLUICtrl* source, void* user_data)
|
||||
//static
|
||||
void LLPanelActiveSpeakers::onClickProfile(void* user_data)
|
||||
{
|
||||
// [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | Added: RLVa-1.0.0g
|
||||
if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES))
|
||||
{
|
||||
return;
|
||||
}
|
||||
// [/RLVa:KB]
|
||||
|
||||
LLPanelActiveSpeakers* panelp = (LLPanelActiveSpeakers*)user_data;
|
||||
LLUUID speaker_id = panelp->mSpeakerList->getValue().asUUID();
|
||||
|
||||
@@ -744,6 +760,13 @@ void LLPanelActiveSpeakers::onClickProfile(void* user_data)
|
||||
//static
|
||||
void LLPanelActiveSpeakers::onDoubleClickSpeaker(void* user_data)
|
||||
{
|
||||
// [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | Added: RLVa-1.0.0g
|
||||
if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES))
|
||||
{
|
||||
return;
|
||||
}
|
||||
// [/RLVa:KB]
|
||||
|
||||
LLPanelActiveSpeakers* panelp = (LLPanelActiveSpeakers*)user_data;
|
||||
LLUUID speaker_id = panelp->mSpeakerList->getValue().asUUID();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user