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.
This commit is contained in:
Lirusaito
2013-02-26 16:59:35 -05:00
parent c0c32c4b70
commit cef61db77f
2 changed files with 24 additions and 0 deletions

View File

@@ -848,6 +848,17 @@ This should be as low as possible, but too low may break functionality</string>
<key>Value</key>
<integer>0</integer>
</map>
<key>StatusBarPositionBeforeParcel</key>
<map>
<key>Comment</key>
<string>Show your position coordinates before the name of the parcel in the status bar</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
<integer>0</integer>
</map>
<key>MoyFastMiniMap</key>
<map>
<key>Comment</key>

View File

@@ -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<bool> 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;
}
}