Make floating text draw distance tunable

This commit is contained in:
Siana Gearz
2011-11-08 01:26:51 +01:00
parent 34fb647903
commit 7fea7c589d
2 changed files with 14 additions and 2 deletions

View File

@@ -9,6 +9,18 @@
<string>settings_rlv.xml</string>
</array>
<key>SGTextFadeDistance</key>
<map>
<key>Comment</key>
<string>Distance after which HUD text starts to fade</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>F32</string>
<key>Value</key>
<integer>8.0</integer>
</map>
<key>CCSAllowNameplateOverride</key>
<map>
<key>Comment</key>

View File

@@ -108,8 +108,8 @@ LLHUDText::LLHUDText(const U8 type) :
{
mColor = LLColor4(1.f, 1.f, 1.f, 1.f);
mDoFade = TRUE;
mFadeDistance = 8.f;
mFadeRange = 4.f;
mFadeDistance = gSavedSettings.getF32("SGTextFadeDistance");
mFadeRange = mFadeDistance/2.f;
mZCompare = TRUE;
mDropShadow = TRUE;
mOffscreen = FALSE;