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:
Lirusaito
2013-07-17 13:49:05 -04:00
parent 52544f020e
commit baef50e451
2 changed files with 15 additions and 0 deletions

View File

@@ -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>

View File

@@ -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)
{