本文整理汇总了C++中LLAvatarName::getNames方法的典型用法代码示例。如果您正苦于以下问题:C++ LLAvatarName::getNames方法的具体用法?C++ LLAvatarName::getNames怎么用?C++ LLAvatarName::getNames使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LLAvatarName
的用法示例。
在下文中一共展示了LLAvatarName::getNames方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: callbackLoadAvatarName
// static
void LLFloaterAvatarInfo::callbackLoadAvatarName(const LLUUID& id,
const LLAvatarName& avatar_name)
{
LLFloaterAvatarInfo *floater = gAvatarInfoInstances.getIfThere(id);
if (floater)
{
// Build a new title including the avatar name.
// Always show "Display Name [Legacy Name]" for security reasons
std::ostringstream title;
title << avatar_name.getNames() << " - " << floater->getTitle();
floater->setTitle(title.str());
}
}
示例2: onAvatarNameLookup
//static
void LLSpeaker::onAvatarNameLookup(const LLUUID& id, const LLAvatarName& avatar_name, void* user_data)
{
LLSpeaker* speaker_ptr = ((LLHandle<LLSpeaker>*)user_data)->get();
delete (LLHandle<LLSpeaker>*)user_data;
if (speaker_ptr)
{
// Always show "Display Name [Legacy Name]" for security reasons
speaker_ptr->mDisplayName = avatar_name.getNames();
// [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]
}
}