Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
33a527dd
Commit
33a527dd
authored
9 months ago
by
Rye Mutt
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' of
https://github.com/AlchemyViewer/Alchemy
parents
152ce1e4
95680620
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/llpanelpeople.cpp
+20
-3
20 additions, 3 deletions
indra/newview/llpanelpeople.cpp
indra/newview/skins/default/xui/en/panel_people.xml
+1
-1
1 addition, 1 deletion
indra/newview/skins/default/xui/en/panel_people.xml
with
21 additions
and
4 deletions
indra/newview/llpanelpeople.cpp
+
20
−
3
View file @
33a527dd
...
...
@@ -894,13 +894,30 @@ void LLPanelPeople::updateNearbyList()
// [/RLVa:KB]
LLWorld
::
getInstance
()
->
getAvatars
(
&
mNearbyList
->
getIDs
(),
&
positions
,
gAgent
.
getPositionGlobal
(),
ALControlCache
::
NearMeRange
);
int
count_in_region
=
0
;
LLViewerRegion
*
cur_region
=
gAgent
.
getRegion
();
mNearbyCountText
->
setTextArg
(
"[COUNT]"
,
std
::
to_string
(
mNearbyList
->
size
()));
if
(
cur_region
)
if
(
!
cur_region
)
{
LL_WARNS
()
<<
"Current region is null"
<<
LL_ENDL
;
return
;
}
// Iterate through avatars in the region.
// The nearby list reports the avatars in 4096m range (ALControlCache::NearMeRange)
// Reported UUIDs may not be in same region.
// Also the TOTAL changes based on your filter results --FLN
for
(
size_t
i
=
0
;
i
<
positions
.
size
();
++
i
)
{
mNearbyCountText
->
setTextArg
(
"[REGION]"
,
cur_region
->
getName
());
if
(
cur_region
->
pointInRegionGlobal
(
positions
[
i
]))
{
count_in_region
++
;
}
}
mNearbyCountText
->
setTextArg
(
"[TOTAL]"
,
std
::
to_string
(
mNearbyList
->
size
()));
mNearbyCountText
->
setTextArg
(
"[COUNT]"
,
std
::
to_string
(
count_in_region
));
mNearbyCountText
->
setTextArg
(
"[REGION]"
,
RlvActions
::
canShowLocation
()
?
cur_region
->
getName
()
:
"[REDACTED]"
);
// [RLVa:KB] - Checked: RLVa-2.0.3
}
else
...
...
This diff is collapsed.
Click to expand it.
indra/newview/skins/default/xui/en/panel_people.xml
+
1
−
1
View file @
33a527dd
...
...
@@ -184,7 +184,7 @@ Learn about [https://community.secondlife.com/knowledgebase/joining-and-particip
use_ellipses=
"true"
skip_link_underline=
"true"
name=
"nearbycount"
>
There are [
COUNT
] avatars in [REGION].
There are [
TOTAL
] avatars
total and [COUNT]
in [REGION].
</text>
<layout_stack
clip=
"false"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment