diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index c4d084bfb..2773cef48 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -1043,6 +1043,17 @@ Found in Advanced->Rendering->Info Displays Value 0 + SFMapShowRegionPositions + + Comment + Shows the X and Y coordinates above the sim name in the world map. + Persist + 1 + Type + Boolean + Value + 0 + SLBShowFPS Comment diff --git a/indra/newview/llworldmapview.cpp b/indra/newview/llworldmapview.cpp index 4c02d875e..2d76879e2 100644 --- a/indra/newview/llworldmapview.cpp +++ b/indra/newview/llworldmapview.cpp @@ -525,6 +525,13 @@ void LLWorldMapView::draw() llfloor(left + 3), llfloor(bottom + 2), LLColor4::white, LLFontGL::LEFT, LLFontGL::BASELINE, LLFontGL::NORMAL, LLFontGL::DROP_SHADOW); + static const LLCachedControl show_region_positions("SFMapShowRegionPositions"); + if (show_region_positions) + font->renderUTF8( + llformat("(%d, %d)", llfloor(info->getGlobalOrigin().mdV[VX]/256), llfloor(info->getGlobalOrigin().mdV[VY])/256), 0, + llfloor(left + 3), llfloor(bottom + 14), + LLColor4::white, + LLFontGL::LEFT, LLFontGL::BASELINE, LLFontGL::NORMAL, LLFontGL::DROP_SHADOW); } } }