Bugfixe for radar. Friends list icons work again, other code cleanup.

meow-7.2.2
Arrehn 2011-03-06 15:28:01 -05:00
parent 46c6d5e3d0
commit 2781068c3f
4 changed files with 11 additions and 3 deletions

View File

@ -65,7 +65,8 @@ bool LLAvatarList::contains(const LLUUID& id)
return std::find(ids.begin(), ids.end(), id) != ids.end();
}
void LLAvatarList::toggleIcons()
void LLAvatarList::toggleIcons()
// Togggles the display of Avatar icons
{
if (!mIgnoreGlobalIcons)
{
@ -73,7 +74,7 @@ void LLAvatarList::toggleIcons()
mShowIcons = !mShowIcons;
gSavedSettings.setBOOL(mIconParamName, mShowIcons);
// Show/hide icons for all existing items.
// Show/hide avatar icons for all existing items.
std::vector<LLPanel*> items;
getItems(items);
for( std::vector<LLPanel*>::const_iterator it = items.begin(); it != items.end(); it++)

View File

@ -793,6 +793,12 @@ void LLAvatarListItem::updateChildren()
LL_DEBUGS("AvatarItemReshape") << "name rect after: " << name_view_rect << LL_ENDL;
}
void LLAvatarListItem::setShowPermissions(bool show)
{
mShowPermissions=show;
showPermissions(show);
}
bool LLAvatarListItem::showPermissions(bool visible)
{

View File

@ -118,7 +118,7 @@ public:
void showPaymentStatus(bool show);
void updateFirstSeen();
void showUsername(bool show);
void setShowPermissions(bool show) { mShowPermissions = show; };
void setShowPermissions(bool show);
void showLastInteractionTime(bool show);
void setAvatarIconVisible(bool visible);
// [RLVa:KB] - Checked: 2010-04-05 (RLVa-1.2.2a) | Added: RLVa-1.2.0d

View File

@ -838,6 +838,7 @@ void LLPanelPeople::updateNearbyList()
// Fetch new list of surrounding Avs
std::vector<LLVector3d> positions;
LLWorld::getInstance()->getAvatars(&mNearbyList->getIDs(), &positions, gAgent.getPositionGlobal(), gSavedSettings.getF32("NearMeRange"));
mNearbyList->setDirty();
DISTANCE_COMPARATOR.updateAvatarsPositions(positions, mNearbyList->getIDs());
//Compare new list with last radar cache, updating fields and processing changes