Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Scale

float Terraria.UI.InGamePopups.PlayerWantsToJoinGamePopup.Scale
getprivate

Definition at line 149 of file InGamePopups.cs.

150 {
151 get
152 {
153 if (_timeLeft < 30)
154 {
155 return MathHelper.Lerp(0f, 1f, (float)_timeLeft / 30f);
156 }
157 if (_timeLeft > 1785)
158 {
159 return MathHelper.Lerp(1f, 0f, ((float)_timeLeft - 1785f) / 15f);
160 }
161 return 1f;
162 }
163 }
static float Lerp(float value1, float value2, float amount)
Definition MathHelper.cs:53

Referenced by Terraria.UI.InGamePopups.PlayerWantsToJoinGamePopup.DrawInGame().