public override void Update(GameTime gameTime) { ChaosRings3Player player = Main.LocalPlayer.GetModPlayer <ChaosRings3Player>(); float quotient = player.mutationValue / player.mutationThres; text.SetText("Mutation Progress " + Math.Round(quotient * 100) + "%"); base.Update(gameTime); }
public override void Draw(SpriteBatch spriteBatch) { ChaosRings3Player player = Main.LocalPlayer.GetModPlayer <ChaosRings3Player>(); float quotient = player.mutationValue / player.mutationThres; muIndicator.Width.Set(quotient * (muIndicatorWidth - 30), 0f); Recalculate(); base.Draw(spriteBatch); }