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

◆ Update()

override void Terraria.GameContent.UI.States.UIWorldLoad.Update ( GameTime gameTime)
inlinevirtual

Reimplemented from Terraria.UI.UIElement.

Definition at line 43 of file UIWorldLoad.cs.

44 {
45 _progressBar.Top.Pixels = MathHelper.Lerp(270f, 370f, Utils.GetLerpValue(600f, 700f, Main.screenHeight, clamped: true));
46 _progressMessage.Top.Pixels = _progressBar.Top.Pixels - 70f;
49 base.Update(gameTime);
50 }
static float Lerp(float value1, float value2, float amount)
Definition MathHelper.cs:53
virtual void Recalculate()
Definition UIElement.cs:281

References Terraria.GameContent.UI.States.UIWorldLoad._progressBar, Terraria.GameContent.UI.States.UIWorldLoad._progressMessage, Terraria.Utils.GetLerpValue(), Microsoft.Xna.Framework.MathHelper.Lerp(), Terraria.GameContent.UI.Elements.UIGenProgressBar.Recalculate(), Terraria.UI.UIElement.Recalculate(), and Terraria.Main.screenHeight.