Feature Request: Add the ability to see count of avatars in regions on the map without needing to hover
Adds LiruMapShowAvCount, which must be set true for this to work.
This commit is contained in:
@@ -707,6 +707,17 @@
|
||||
<key>Value</key>
|
||||
<integer>1</integer>
|
||||
</map>
|
||||
<key>LiruMapShowAvCount</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Whether or not to display the count of avatars in each region on the world map as part of the region name and maturity label.</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>LiruNoTransactionClutter</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
||||
@@ -509,6 +509,10 @@ void LLWorldMapView::draw()
|
||||
else if(!info->getName().empty()) // Online sims should have names...
|
||||
{
|
||||
mesg = info->getName();
|
||||
|
||||
static const LLCachedControl<bool> show_avs("LiruMapShowAvCount");
|
||||
if (show_avs) mesg += llformat(" (%d)", info->getAgentCount());
|
||||
|
||||
U8 access = info->getAccess();
|
||||
switch(access)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user