From 27964ba7c04fac792ba2159d72f94ef247f3099b Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Sun, 5 Sep 2010 21:11:28 -0700 Subject: Applied patch from Emerald, ported by Ansariel Hiller: #490: show access level next to region name --- linden/indra/newview/llworldmapview.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/linden/indra/newview/llworldmapview.cpp b/linden/indra/newview/llworldmapview.cpp index 2e28d18..2632ae4 100644 --- a/linden/indra/newview/llworldmapview.cpp +++ b/linden/indra/newview/llworldmapview.cpp @@ -719,6 +719,27 @@ void LLWorldMapView::draw() LLFontGL::DROP_SHADOW); } mesg = info->mName; + + // Add access level to region name + U8 access = info->mAccess; + switch(access) + { + case SIM_ACCESS_MIN: + mesg += " (" + LLTrans::getString("SIM_ACCESS_MIN") +")"; + break; + case SIM_ACCESS_PG: + mesg += " (" + LLTrans::getString("SIM_ACCESS_PG") +")"; + break; + case SIM_ACCESS_MATURE: + mesg += " (" + LLTrans::getString("SIM_ACCESS_MATURE") +")"; + break; + case SIM_ACCESS_ADULT: + mesg += " (" + LLTrans::getString("SIM_ACCESS_ADULT") +")"; + break; + default: + mesg += llformat(" (Access: %d)", access); + break; + } } else { -- cgit v1.1