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:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user