本文整理汇总了C++中LLAvatarListItem::showAvatarAge方法的典型用法代码示例。如果您正苦于以下问题:C++ LLAvatarListItem::showAvatarAge方法的具体用法?C++ LLAvatarListItem::showAvatarAge怎么用?C++ LLAvatarListItem::showAvatarAge使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LLAvatarListItem
的用法示例。
在下文中一共展示了LLAvatarListItem::showAvatarAge方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: addNewItem
void LLAvatarList::addNewItem(const LLUUID& id, const std::string& name, BOOL is_online, EAddPosition pos)
{
LLAvatarListItem* item = new LLAvatarListItem();
// [RLVa:KB] - Checked: 2010-04-05 (RLVa-1.2.2a) | Added: RLVa-1.2.0d
item->setRlvCheckShowNames(mRlvCheckShowNames);
// [/RLVa:KB]
// AO: Adjust some parameters that need to be changed when we adjust item spacing form the .xml default
// If you change these, also change setLineHeight()
if (mItemHeight != 0)
{
S32 width = item->getRect().getWidth();
item->reshape(width,mItemHeight);
LLIconCtrl* highlight = item->getChild<LLIconCtrl>("hovered_icon");
LLIconCtrl* select = item->getChild<LLIconCtrl>("selected_icon");
highlight->setOrigin(0,24-mItemHeight); // temporary hack to be in the right ballpark.
highlight->reshape(width,mItemHeight);
select->setOrigin(0,24-mItemHeight);
select->reshape(width,mItemHeight);
}
// This sets the name as a side effect
item->setAvatarId(id, mSessionID, mIgnoreOnlineStatus);
item->setOnline(mIgnoreOnlineStatus ? true : is_online);
item->showLastInteractionTime(mShowLastInteractionTime);
item->setAvatarIconVisible(mShowIcons);
item->setShowInfoBtn(mShowInfoBtn);
item->setShowVoiceVolume(mShowVoiceVolume);
item->setShowProfileBtn(mShowProfileBtn);
item->showSpeakingIndicator(mShowSpeakingIndicator);
item->setShowPermissions(mShowPermissions);
item->showUsername(mShowUsername);
item->showDisplayName(mShowDisplayName);
item->showRange(mShowRange);
item->showFirstSeen(mShowFirstSeen);
item->showStatusFlags(mShowStatusFlags);
item->showPaymentStatus(mShowPaymentStatus);
item->showAvatarAge(mShowAge);
// [Ansariel: Colorful radar]
item->setUseRangeColors(mUseRangeColors);
LLUIColorTable* colorTable = &LLUIColorTable::instance();
item->setShoutRangeColor(colorTable->getColor("AvatarListItemShoutRange", LLColor4::yellow));
item->setBeyondShoutRangeColor(colorTable->getColor("AvatarListItemBeyondShoutRange", LLColor4::red));
// [/Ansariel: Colorful radar]
item->setDoubleClickCallback(boost::bind(&LLAvatarList::onItemDoubleClicked, this, _1, _2, _3, _4));
addItem(item, id, pos);
}