Added ShowSimChannel debug setting to display sim channel information in the status bar.

This commit is contained in:
Lirusaito
2013-01-31 22:22:40 -05:00
parent 5b2e1a0aae
commit 0a6bebf9db
2 changed files with 13 additions and 0 deletions

View File

@@ -860,6 +860,17 @@ This should be as low as possible, but too low may break functionality</string>
<key>Value</key>
<integer>1</integer>
</map>
<key>ShowSimChannel</key>
<map>
<key>Comment</key>
<string>Show the channel information for the current sim 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

@@ -517,6 +517,8 @@ void LLStatusBar::refresh()
pos_x, pos_y, pos_z,
region->getSimAccessString().c_str());
}
static LLCachedControl<bool> show_channel("ShowSimChannel");
if (show_channel && !gLastVersionChannel.empty()) location_name += " - " + gLastVersionChannel;
}
else
{