Added region positions to the world map tiles
This feature added the setting 'SFMapShowRegionPositions'
This commit is contained in:
@@ -1043,6 +1043,17 @@ Found in Advanced->Rendering->Info Displays</string>
|
||||
<key>Value</key>
|
||||
<boolean>0</boolean>
|
||||
</map>
|
||||
<key>SFMapShowRegionPositions</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Shows the X and Y coordinates above the sim name in the world map.</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<boolean>0</boolean>
|
||||
</map>
|
||||
<key>SLBShowFPS</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
||||
@@ -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<bool> 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user