Merge branch 'master' of https://github.com/Lirusaito/SingularityViewer
This commit is contained in:
@@ -1,141 +0,0 @@
|
|||||||
<llsd>
|
|
||||||
<map>
|
|
||||||
<key>ambient</key>
|
|
||||||
<array>
|
|
||||||
<real>1.4699999094009399</real>
|
|
||||||
<real>1.4699999094009399</real>
|
|
||||||
<real>1.4699999094009399</real>
|
|
||||||
<real>0.48999997973442078</real>
|
|
||||||
</array>
|
|
||||||
<key>blue_density</key>
|
|
||||||
<array>
|
|
||||||
<real>0.099999994039535522</real>
|
|
||||||
<real>0.037499997764825821</real>
|
|
||||||
<real>0.067499987781047821</real>
|
|
||||||
<real>0.049999997019767761</real>
|
|
||||||
</array>
|
|
||||||
<key>blue_horizon</key>
|
|
||||||
<array>
|
|
||||||
<real>0.15130999684333801</real>
|
|
||||||
<real>0.30000001192092896</real>
|
|
||||||
<real>0.35131001472473145</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>cloud_color</key>
|
|
||||||
<array>
|
|
||||||
<real>0.22999998927116394</real>
|
|
||||||
<real>0.22999998927116394</real>
|
|
||||||
<real>0.22999998927116394</real>
|
|
||||||
<real>0.22999998927116394</real>
|
|
||||||
</array>
|
|
||||||
<key>cloud_pos_density1</key>
|
|
||||||
<array>
|
|
||||||
<real>0.88419097661972046</real>
|
|
||||||
<real>0.53047597408294678</real>
|
|
||||||
<real>0.52999997138977051</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>cloud_pos_density2</key>
|
|
||||||
<array>
|
|
||||||
<real>0.2800000011920929</real>
|
|
||||||
<real>0.19999998807907104</real>
|
|
||||||
<real>0.31999999284744263</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>cloud_scale</key>
|
|
||||||
<array>
|
|
||||||
<real>0.0099999997764825821</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>cloud_scroll_rate</key>
|
|
||||||
<array>
|
|
||||||
<real>0</real>
|
|
||||||
<real>15.329999446868896</real>
|
|
||||||
</array>
|
|
||||||
<key>cloud_shadow</key>
|
|
||||||
<array>
|
|
||||||
<real>0</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>density_multiplier</key>
|
|
||||||
<array>
|
|
||||||
<real>0.00022000000171829015</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>distance_multiplier</key>
|
|
||||||
<array>
|
|
||||||
<real>16.200000762939453</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>east_angle</key>
|
|
||||||
<real>6.2831854820251465</real>
|
|
||||||
<key>enable_cloud_scroll</key>
|
|
||||||
<array>
|
|
||||||
<boolean>1</boolean>
|
|
||||||
<boolean>1</boolean>
|
|
||||||
</array>
|
|
||||||
<key>gamma</key>
|
|
||||||
<array>
|
|
||||||
<real>1.4199999570846558</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>glow</key>
|
|
||||||
<array>
|
|
||||||
<real>18.599998474121094</real>
|
|
||||||
<real>0.0012815999798476696</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>haze_density</key>
|
|
||||||
<array>
|
|
||||||
<real>0</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>haze_horizon</key>
|
|
||||||
<array>
|
|
||||||
<real>1</real>
|
|
||||||
<real>0.21744099259376526</real>
|
|
||||||
<real>0.21744099259376526</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>lightnorm</key>
|
|
||||||
<array>
|
|
||||||
<real>-1.7484555314695172e-007</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>1</real>
|
|
||||||
<real>0</real>
|
|
||||||
</array>
|
|
||||||
<key>max_y</key>
|
|
||||||
<array>
|
|
||||||
<real>403</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>preset_num</key>
|
|
||||||
<integer>2</integer>
|
|
||||||
<key>star_brightness</key>
|
|
||||||
<real>0</real>
|
|
||||||
<key>sun_angle</key>
|
|
||||||
<real>0</real>
|
|
||||||
<key>sunlight_color</key>
|
|
||||||
<array>
|
|
||||||
<real>0</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>0</real>
|
|
||||||
</array>
|
|
||||||
</map>
|
|
||||||
</llsd>
|
|
||||||
@@ -1,141 +0,0 @@
|
|||||||
<llsd>
|
|
||||||
<map>
|
|
||||||
<key>ambient</key>
|
|
||||||
<array>
|
|
||||||
<real>1.4699999094009399</real>
|
|
||||||
<real>1.4699999094009399</real>
|
|
||||||
<real>1.4699999094009399</real>
|
|
||||||
<real>0.48999997973442078</real>
|
|
||||||
</array>
|
|
||||||
<key>blue_density</key>
|
|
||||||
<array>
|
|
||||||
<real>0.14000000059604645</real>
|
|
||||||
<real>0.14000000059604645</real>
|
|
||||||
<real>0.14000000059604645</real>
|
|
||||||
<real>0.070000000298023224</real>
|
|
||||||
</array>
|
|
||||||
<key>blue_horizon</key>
|
|
||||||
<array>
|
|
||||||
<real>0.83809572458267212</real>
|
|
||||||
<real>1.0735483169555664</real>
|
|
||||||
<real>1.2799999713897705</real>
|
|
||||||
<real>0.63999998569488525</real>
|
|
||||||
</array>
|
|
||||||
<key>cloud_color</key>
|
|
||||||
<array>
|
|
||||||
<real>0.12862999737262726</real>
|
|
||||||
<real>0.12862999737262726</real>
|
|
||||||
<real>0.12862999737262726</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>cloud_pos_density1</key>
|
|
||||||
<array>
|
|
||||||
<real>0.70999997854232788</real>
|
|
||||||
<real>0.53047597408294678</real>
|
|
||||||
<real>0.4270470142364502</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>cloud_pos_density2</key>
|
|
||||||
<array>
|
|
||||||
<real>0.38419300317764282</real>
|
|
||||||
<real>0.5</real>
|
|
||||||
<real>0.125</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>cloud_scale</key>
|
|
||||||
<array>
|
|
||||||
<real>0.72999995946884155</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>cloud_scroll_rate</key>
|
|
||||||
<array>
|
|
||||||
<real>10</real>
|
|
||||||
<real>10</real>
|
|
||||||
</array>
|
|
||||||
<key>cloud_shadow</key>
|
|
||||||
<array>
|
|
||||||
<real>0.2199999988079071</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>density_multiplier</key>
|
|
||||||
<array>
|
|
||||||
<real>0.00017999998817685992</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>distance_multiplier</key>
|
|
||||||
<array>
|
|
||||||
<real>11.40000057220459</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>east_angle</key>
|
|
||||||
<real>0</real>
|
|
||||||
<key>enable_cloud_scroll</key>
|
|
||||||
<array>
|
|
||||||
<boolean>1</boolean>
|
|
||||||
<boolean>1</boolean>
|
|
||||||
</array>
|
|
||||||
<key>gamma</key>
|
|
||||||
<array>
|
|
||||||
<real>1.6899999380111694</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>glow</key>
|
|
||||||
<array>
|
|
||||||
<real>6.4079799652099609</real>
|
|
||||||
<real>0.0012815999798476696</real>
|
|
||||||
<real>-0.39999997615814209</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>haze_density</key>
|
|
||||||
<array>
|
|
||||||
<real>1.4900000095367432</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>haze_horizon</key>
|
|
||||||
<array>
|
|
||||||
<real>0</real>
|
|
||||||
<real>0.21744099259376526</real>
|
|
||||||
<real>0.21744099259376526</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>lightnorm</key>
|
|
||||||
<array>
|
|
||||||
<real>0</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>1</real>
|
|
||||||
<real>0</real>
|
|
||||||
</array>
|
|
||||||
<key>max_y</key>
|
|
||||||
<array>
|
|
||||||
<real>805</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>preset_num</key>
|
|
||||||
<integer>2</integer>
|
|
||||||
<key>star_brightness</key>
|
|
||||||
<real>1.5699999332427979</real>
|
|
||||||
<key>sun_angle</key>
|
|
||||||
<real>0</real>
|
|
||||||
<key>sunlight_color</key>
|
|
||||||
<array>
|
|
||||||
<real>3</real>
|
|
||||||
<real>3</real>
|
|
||||||
<real>3</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
</map>
|
|
||||||
</llsd>
|
|
||||||
@@ -1,141 +0,0 @@
|
|||||||
<llsd>
|
|
||||||
<map>
|
|
||||||
<key>ambient</key>
|
|
||||||
<array>
|
|
||||||
<real>2.0099997520446777</real>
|
|
||||||
<real>1.9199999570846558</real>
|
|
||||||
<real>1.8899999856948853</real>
|
|
||||||
<real>2.0099997520446777</real>
|
|
||||||
</array>
|
|
||||||
<key>blue_density</key>
|
|
||||||
<array>
|
|
||||||
<real>0.63999998569488525</real>
|
|
||||||
<real>1.1799999475479126</real>
|
|
||||||
<real>2</real>
|
|
||||||
<real>2</real>
|
|
||||||
</array>
|
|
||||||
<key>blue_horizon</key>
|
|
||||||
<array>
|
|
||||||
<real>0.23999999463558197</real>
|
|
||||||
<real>0.23999999463558197</real>
|
|
||||||
<real>0.31999999284744263</real>
|
|
||||||
<real>0.31999999284744263</real>
|
|
||||||
</array>
|
|
||||||
<key>cloud_color</key>
|
|
||||||
<array>
|
|
||||||
<real>0.39050509865536398</real>
|
|
||||||
<real>0.39050509865536398</real>
|
|
||||||
<real>0.39050509865536398</real>
|
|
||||||
<real>0.39050509865536398</real>
|
|
||||||
</array>
|
|
||||||
<key>cloud_pos_density1</key>
|
|
||||||
<array>
|
|
||||||
<real>1.6884100437164307</real>
|
|
||||||
<real>0.52609699964523315</real>
|
|
||||||
<real>1</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>cloud_pos_density2</key>
|
|
||||||
<array>
|
|
||||||
<real>1.6884100437164307</real>
|
|
||||||
<real>0.52609699964523315</real>
|
|
||||||
<real>0.125</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>cloud_scale</key>
|
|
||||||
<array>
|
|
||||||
<real>0.41999998254906856</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>cloud_scroll_rate</key>
|
|
||||||
<array>
|
|
||||||
<real>10.199999735331062</real>
|
|
||||||
<real>10.010999579794088</real>
|
|
||||||
</array>
|
|
||||||
<key>cloud_shadow</key>
|
|
||||||
<array>
|
|
||||||
<real>0.12999999523162842</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>density_multiplier</key>
|
|
||||||
<array>
|
|
||||||
<real>0.00017999998391111764</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>distance_multiplier</key>
|
|
||||||
<array>
|
|
||||||
<real>2</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>east_angle</key>
|
|
||||||
<real>0</real>
|
|
||||||
<key>enable_cloud_scroll</key>
|
|
||||||
<array>
|
|
||||||
<boolean>1</boolean>
|
|
||||||
<boolean>1</boolean>
|
|
||||||
</array>
|
|
||||||
<key>gamma</key>
|
|
||||||
<array>
|
|
||||||
<real>1.1499999761581421</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>glow</key>
|
|
||||||
<array>
|
|
||||||
<real>4.9999998807907104</real>
|
|
||||||
<real>0.0010000000478643939</real>
|
|
||||||
<real>-0.47999998436731417</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>haze_density</key>
|
|
||||||
<array>
|
|
||||||
<real>0.64999997615814209</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>haze_horizon</key>
|
|
||||||
<array>
|
|
||||||
<real>0.08999999612569809</real>
|
|
||||||
<real>0.19915600121021271</real>
|
|
||||||
<real>0.19915600121021271</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>lightnorm</key>
|
|
||||||
<array>
|
|
||||||
<real>0</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>1</real>
|
|
||||||
<real>0</real>
|
|
||||||
</array>
|
|
||||||
<key>max_y</key>
|
|
||||||
<array>
|
|
||||||
<real>188</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>0</real>
|
|
||||||
<real>1</real>
|
|
||||||
</array>
|
|
||||||
<key>preset_num</key>
|
|
||||||
<integer>22</integer>
|
|
||||||
<key>star_brightness</key>
|
|
||||||
<real>0</real>
|
|
||||||
<key>sun_angle</key>
|
|
||||||
<real>0</real>
|
|
||||||
<key>sunlight_color</key>
|
|
||||||
<array>
|
|
||||||
<real>2.5799999237060547</real>
|
|
||||||
<real>2.5799999237060547</real>
|
|
||||||
<real>2.5799999237060547</real>
|
|
||||||
<real>2.5799999237060547</real>
|
|
||||||
</array>
|
|
||||||
</map>
|
|
||||||
</llsd>
|
|
||||||
@@ -1464,7 +1464,7 @@ void LLAgentWearables::setWearableOutfit(const LLInventoryItem::item_array_t& it
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
// If we got here, everything matches.
|
// If we got here, everything matches.
|
||||||
matched++;
|
//matched++; // TODO: Find out why this was here, this became unreachable at some point.
|
||||||
}
|
}
|
||||||
LL_DEBUGS("Avatar") << "matched " << matched << " mismatched " << mismatched << LL_ENDL;
|
LL_DEBUGS("Avatar") << "matched " << matched << " mismatched " << mismatched << LL_ENDL;
|
||||||
for (S32 j=0; j<LLWearableType::WT_COUNT; j++)
|
for (S32 j=0; j<LLWearableType::WT_COUNT; j++)
|
||||||
|
|||||||
@@ -145,6 +145,7 @@ LLAvatarListEntry::LLAvatarListEntry(const LLUUID& id, const std::string& name,
|
|||||||
|
|
||||||
LLAvatarListEntry::~LLAvatarListEntry()
|
LLAvatarListEntry::~LLAvatarListEntry()
|
||||||
{
|
{
|
||||||
|
setPosition(mPosition, F32_MIN, false); // Dead and gone
|
||||||
LLAvatarPropertiesProcessor::instance().removeObserver(mID, this);
|
LLAvatarPropertiesProcessor::instance().removeObserver(mID, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -268,7 +269,7 @@ void LLFloaterAvatarList::draw()
|
|||||||
|
|
||||||
void LLFloaterAvatarList::onOpen()
|
void LLFloaterAvatarList::onOpen()
|
||||||
{
|
{
|
||||||
if (mAvatars.size()) refreshAvatarList();
|
refreshAvatarList();
|
||||||
}
|
}
|
||||||
|
|
||||||
void LLFloaterAvatarList::onClose(bool app_quitting)
|
void LLFloaterAvatarList::onClose(bool app_quitting)
|
||||||
@@ -509,6 +510,12 @@ void updateParticleActivity(LLDrawable *drawablep)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const F32& radar_range_radius()
|
||||||
|
{
|
||||||
|
static const LLCachedControl<F32> radius("RadarRangeRadius", 0);
|
||||||
|
return radius;
|
||||||
|
}
|
||||||
|
|
||||||
void LLFloaterAvatarList::updateAvatarList(const LLViewerRegion* region)
|
void LLFloaterAvatarList::updateAvatarList(const LLViewerRegion* region)
|
||||||
{
|
{
|
||||||
// Check whether updates are enabled
|
// Check whether updates are enabled
|
||||||
@@ -523,8 +530,7 @@ void LLFloaterAvatarList::updateAvatarList(const LLViewerRegion* region)
|
|||||||
const std::vector<LLUUID>& map_avids(region->mMapAvatarIDs);
|
const std::vector<LLUUID>& map_avids(region->mMapAvatarIDs);
|
||||||
const LLVector3d& mypos(gAgent.getPositionGlobal());
|
const LLVector3d& mypos(gAgent.getPositionGlobal());
|
||||||
const LLVector3d& origin(region->getOriginGlobal());
|
const LLVector3d& origin(region->getOriginGlobal());
|
||||||
static const LLCachedControl<F32> radar_range_radius("RadarRangeRadius", 0);
|
const F32 max_range(radar_range_radius() * radar_range_radius());
|
||||||
const F32 max_range(radar_range_radius * radar_range_radius);
|
|
||||||
|
|
||||||
static LLCachedControl<bool> announce(gSavedSettings, "RadarChatKeys");
|
static LLCachedControl<bool> announce(gSavedSettings, "RadarChatKeys");
|
||||||
std::queue<LLUUID> announce_keys;
|
std::queue<LLUUID> announce_keys;
|
||||||
@@ -594,28 +600,22 @@ void LLFloaterAvatarList::updateAvatarList(const LLViewerRegion* region)
|
|||||||
|
|
||||||
void LLFloaterAvatarList::expireAvatarList(const std::list<LLUUID>& ids)
|
void LLFloaterAvatarList::expireAvatarList(const std::list<LLUUID>& ids)
|
||||||
{
|
{
|
||||||
BOOST_FOREACH(const LLUUID& id, ids)
|
if (!ids.empty())
|
||||||
{
|
{
|
||||||
av_list_t::iterator it(std::find_if(mAvatars.begin(), mAvatars.end(), LLAvatarListEntry::uuidMatch(id)));
|
std::vector<LLUUID> existing_avs;
|
||||||
if (it != mAvatars.end())
|
std::vector<LLViewerRegion*> neighbors;
|
||||||
|
gAgent.getRegion()->getNeighboringRegions(neighbors);
|
||||||
|
BOOST_FOREACH(const LLViewerRegion* region, neighbors)
|
||||||
|
existing_avs.insert(existing_avs.end(), region->mMapAvatarIDs.begin(), region->mMapAvatarIDs.end());
|
||||||
|
BOOST_FOREACH(const LLUUID& id, ids)
|
||||||
{
|
{
|
||||||
LLAvatarListEntry* entry = it->get();
|
if (std::find(existing_avs.begin(), existing_avs.end(), id) != existing_avs.end()) continue; // Now in another region we know.
|
||||||
entry->setPosition(entry->getPosition(), F32_MIN, false); // Dead and gone
|
av_list_t::iterator it(std::find_if(mAvatars.begin(), mAvatars.end(), LLAvatarListEntry::uuidMatch(id)));
|
||||||
mAvatars.erase(it);
|
if (it != mAvatars.end())
|
||||||
|
mAvatars.erase(it);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mAvatars.empty())
|
|
||||||
setTitle(getString("Title"));
|
|
||||||
else if (mAvatars.size() == 1)
|
|
||||||
setTitle(getString("TitleOneAvatar"));
|
|
||||||
else
|
|
||||||
{
|
|
||||||
LLStringUtil::format_map_t args;
|
|
||||||
args["[COUNT]"] = boost::lexical_cast<std::string>(mAvatars.size());
|
|
||||||
setTitle(getString("TitleWithCount", args));
|
|
||||||
}
|
|
||||||
|
|
||||||
refreshAvatarList();
|
refreshAvatarList();
|
||||||
refreshTracker();
|
refreshTracker();
|
||||||
}
|
}
|
||||||
@@ -648,7 +648,7 @@ bool getCustomColorRLV(const LLUUID& id, LLColor4& color, LLViewerRegion* parent
|
|||||||
*/
|
*/
|
||||||
void LLFloaterAvatarList::refreshAvatarList()
|
void LLFloaterAvatarList::refreshAvatarList()
|
||||||
{
|
{
|
||||||
// Don't update list when interface is hidden
|
// Don't update when interface is hidden
|
||||||
if (!getVisible()) return;
|
if (!getVisible()) return;
|
||||||
|
|
||||||
// We rebuild the list fully each time it's refreshed
|
// We rebuild the list fully each time it's refreshed
|
||||||
@@ -669,6 +669,7 @@ void LLFloaterAvatarList::refreshAvatarList()
|
|||||||
localRectToScreen(getLocalRect(), &screen_rect);
|
localRectToScreen(getLocalRect(), &screen_rect);
|
||||||
speakermgr.update(!(screen_rect.pointInRect(gViewerWindow->getCurrentMouseX(), gViewerWindow->getCurrentMouseY()) && gMouseIdleTimer.getElapsedTimeF32() < 5.f));
|
speakermgr.update(!(screen_rect.pointInRect(gViewerWindow->getCurrentMouseX(), gViewerWindow->getCurrentMouseY()) && gMouseIdleTimer.getElapsedTimeF32() < 5.f));
|
||||||
|
|
||||||
|
av_list_t dead_entries;
|
||||||
bool name_restricted(gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMETAGS) || gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES));
|
bool name_restricted(gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMETAGS) || gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES));
|
||||||
BOOST_FOREACH(av_list_t::value_type& entry, mAvatars)
|
BOOST_FOREACH(av_list_t::value_type& entry, mAvatars)
|
||||||
{
|
{
|
||||||
@@ -684,7 +685,11 @@ void LLFloaterAvatarList::refreshAvatarList()
|
|||||||
|
|
||||||
//jcool410 -- this fucks up seeing dueds thru minimap data > 1024m away, so, lets just say > 2048m to the side is bad
|
//jcool410 -- this fucks up seeing dueds thru minimap data > 1024m away, so, lets just say > 2048m to the side is bad
|
||||||
//aka 8 sims
|
//aka 8 sims
|
||||||
if (delta.magVec() > 2048.0) continue;
|
if (delta.magVec() > 2048.0)
|
||||||
|
{
|
||||||
|
dead_entries.push_back(entry);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
entry->setInList();
|
entry->setInList();
|
||||||
const LLUUID& av_id = entry->getID();
|
const LLUUID& av_id = entry->getID();
|
||||||
@@ -969,6 +974,20 @@ void LLFloaterAvatarList::refreshAvatarList()
|
|||||||
mAvatarList->addRow(element);
|
mAvatarList->addRow(element);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BOOST_FOREACH(av_list_t::value_type& dead, dead_entries)
|
||||||
|
mAvatars.erase(std::remove(mAvatars.begin(), mAvatars.end(), dead), mAvatars.end());
|
||||||
|
|
||||||
|
if (mAvatars.empty())
|
||||||
|
setTitle(getString("Title"));
|
||||||
|
else if (mAvatars.size() == 1)
|
||||||
|
setTitle(getString("TitleOneAvatar"));
|
||||||
|
else
|
||||||
|
{
|
||||||
|
LLStringUtil::format_map_t args;
|
||||||
|
args["[COUNT]"] = boost::lexical_cast<std::string>(mAvatars.size());
|
||||||
|
setTitle(getString("TitleWithCount", args));
|
||||||
|
}
|
||||||
|
|
||||||
// finish
|
// finish
|
||||||
mAvatarList->updateSort();
|
mAvatarList->updateSort();
|
||||||
mAvatarList->selectMultiple(selected);
|
mAvatarList->selectMultiple(selected);
|
||||||
|
|||||||
Reference in New Issue
Block a user