Definition at line 568 of file PopupText.cs.
569 {
571 {
572 return;
573 }
576 if ((
double)
alpha <= 0.7)
577 {
580 }
582 {
585 }
587 {
588 color =
new Color((
byte)Main.DiscoR, (
byte)Main.DiscoG, (
byte)Main.DiscoB, Main.mouseTextColor);
589 }
591 {
592 color =
new Color(255, (
byte)(Main.masterColor * 200f), 0, Main.mouseTextColor);
593 }
594 bool flag = false;
597 for (
int i = 0;
i < 20;
i++)
598 {
599 PopupText popupText = Main.popupText[
i];
600 if (!popupText.active || i == whoAmI)
601 {
602 continue;
603 }
604 Vector2 textHitbox2 = popupText.GetTextHitbox();
605 Rectangle value =
new Rectangle((
int)(popupText.position.X - textHitbox2.
X / 2f), (
int)(popupText.position.Y - textHitbox2.
Y / 2f), (
int)textHitbox2.
X, (
int)textHitbox2.
Y);
607 {
608 flag = true;
610 if (num > 3)
611 {
612 num = 3;
613 }
616 }
617 }
618 if (!flag)
619 {
620 velocity.Y *= 0.86f;
621 if (
scale == targetScale)
622 {
623 velocity.Y *= 0.4f;
624 }
625 }
627 {
628 velocity.Y -= 0.2f;
629 }
630 else
631 {
632 velocity.Y *= 0.86f;
633 }
634 velocity.X *= 0.93f;
638 {
639 scale -= 0.03f * targetScale;
640 if ((
double)
scale < 0.1 * (
double)targetScale)
641 {
644 {
646 }
647 }
649 }
650 else
651 {
652 if (
scale < targetScale)
653 {
654 scale += 0.1f * targetScale;
655 }
656 if (
scale > targetScale)
657 {
659 }
660 }
661 }
bool Intersects(Rectangle value)
References Terraria.PopupText.active, Terraria.PopupText.activeTime, Terraria.PopupText.alpha, Terraria.PopupText.alphaDir, Terraria.PopupText.color, Terraria.Main.DiscoB, Terraria.Main.DiscoG, Terraria.Main.DiscoR, Terraria.PopupText.expert, Terraria.PopupText.GetTextHitbox(), Microsoft.Xna.Framework.Rectangle.Intersects(), Terraria.PopupText.lifeTime, Terraria.PopupText.master, Terraria.Main.masterColor, Terraria.Main.mouseTextColor, Terraria.PopupText.numActive, Terraria.Main.popupText, Terraria.PopupText.position, Terraria.PopupText.scale, Terraria.PopupText.sonarText, Terraria.PopupText.TargetScale, System.value, Terraria.PopupText.velocity, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.