From e93fdf4615968dbde7f5c826ad2611a962f0e0e1 Mon Sep 17 00:00:00 2001 From: Sim Federal Date: Tue, 17 Jun 2014 14:06:42 -0500 Subject: [PATCH] Added region positions to the world map tiles This feature added the setting 'SFMapShowRegionPositions' --- indra/newview/app_settings/settings.xml | 11 +++++++++++ indra/newview/llworldmapview.cpp | 7 +++++++ 2 files changed, 18 insertions(+) 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); } } }