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

◆ Scale

float Terraria.UI.InGamePopups.AchievementUnlockedPopup.Scale
getprivate

Definition at line 39 of file InGamePopups.cs.

40 {
41 get
42 {
44 {
45 return MathHelper.Lerp(0f, 1f, (float)_ingameDisplayTimeLeft / 30f);
46 }
47 if (_ingameDisplayTimeLeft > 285)
48 {
49 return MathHelper.Lerp(1f, 0f, ((float)_ingameDisplayTimeLeft - 285f) / 15f);
50 }
51 return 1f;
52 }
53 }
static float Lerp(float value1, float value2, float amount)
Definition MathHelper.cs:53

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