From cef61db77fb23ed1ee1288aec60a45088ba1ed50 Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Tue, 26 Feb 2013 16:59:35 -0500 Subject: [PATCH] Feature Request: Add debug setting for showing Position Before Parcel in the Status Bar Adds StatusBarPositionBeforeParcel Enables builders on parcels with keywords in their names to see their position. --- indra/newview/app_settings/settings.xml | 11 +++++++++++ indra/newview/llagentui.cpp | 13 +++++++++++++ 2 files changed, 24 insertions(+) diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 7f1799f68..9c51e8c4f 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -848,6 +848,17 @@ This should be as low as possible, but too low may break functionality Value 0 + StatusBarPositionBeforeParcel + + Comment + Show your position coordinates before the name of the parcel in the status bar + Persist + 1 + Type + Boolean + Value + 0 + MoyFastMiniMap Comment diff --git a/indra/newview/llagentui.cpp b/indra/newview/llagentui.cpp index 55152cf19..eb6b1835b 100644 --- a/indra/newview/llagentui.cpp +++ b/indra/newview/llagentui.cpp @@ -172,12 +172,25 @@ BOOL LLAgentUI::buildLocationString(std::string& str, ELocationFormat fmt,const sim_access_string.c_str()); break; case LOCATION_FORMAT_FULL: + static LLCachedControl position_before_parcel("StatusBarPositionBeforeParcel"); + if (!position_before_parcel) + { buffer = llformat("%s, %s (%d, %d, %d)%s%s", parcel_name.c_str(), region_name.c_str(), pos_x, pos_y, pos_z, sim_access_string.empty() ? "" : " - ", sim_access_string.c_str()); + } + else + { + buffer = llformat("%s (%d, %d, %d) - %s%s%s", + region_name.c_str(), + pos_x, pos_y, pos_z, + parcel_name.c_str(), + sim_access_string.empty() ? "" : " - ", + sim_access_string.c_str()); + } break; } }