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

◆ PlaySegment_Grox_SantaAndTaxCollectorThrowingPresents()

SegmentInforReport Terraria.GameContent.Skies.CreditsRoll.CreditsRollComposer.PlaySegment_Grox_SantaAndTaxCollectorThrowingPresents ( int startTime,
Vector2 sceneAnchorPosition )
inlineprivate

Definition at line 562 of file CreditsRollComposer.cs.

563 {
565 int num = startTime;
566 int num2 = 0;
567 sceneAnchorPosition.X += num2;
568 int num3 = 120;
569 Asset<Texture2D> val = TextureAssets.Extra[236];
570 Rectangle rectangle = val.Frame();
571 DrawData data = new DrawData(val.Value, Vector2.Zero, rectangle, Color.White, 0f, rectangle.Size() * new Vector2(0.5f, 1f) + new Vector2(num2, -42f), 1f, SpriteEffects.None);
573 .Then(new Actions.Sprites.Wait(120));
576 .Then(new Actions.NPCs.Move(new Vector2(0.5f, 0f), 120));
578 .Then(new Actions.NPCs.Wait(120));
579 Asset<Texture2D> val2 = TextureAssets.Extra[239];
580 Rectangle rectangle2 = val2.Frame(1, 8);
581 DrawData data2 = new DrawData(val2.Value, Vector2.Zero, rectangle2, Color.White, 0f, rectangle2.Size() * new Vector2(0.5f, 1f), 1f, SpriteEffects.FlipHorizontally);
583 num += (int)animationSegmentWithActions2.DedicatedTimeNeeded;
584 int num4 = 120;
585 int num5 = 90;
590 num += num4;
592 int num6 = num4 + 30;
597 num += num6;
600 num += num5;
604 num += num4;
609 num += num4;
612 {
613 new Point(0, 0),
614 new Point(0, 1),
615 new Point(0, 2),
616 new Point(0, 3),
617 new Point(0, 4),
618 new Point(0, 5),
619 new Point(0, 6),
620 new Point(0, 7)
621 }, 5, 0, 0));
626 num += 187;
635 SegmentInforReport result = default(SegmentInforReport);
636 result.totalTime = num - startTime;
637 return result;
638 }
AnimationSegmentWithActions< T > Then(IAnimationSegmentAction< T > act)
Definition Segments.cs:94
SpriteSegment UseShaderEffect(IShaderEffect shaderEffect)
Definition Segments.cs:391

References Terraria.GameContent.Skies.CreditsRoll.CreditsRollComposer._backgroundOffset, Terraria.GameContent.Skies.CreditsRoll.CreditsRollComposer._emoteBubbleOffsetWhenOnLeft, Terraria.GameContent.Skies.CreditsRoll.CreditsRollComposer._emoteBubbleOffsetWhenOnRight, Terraria.GameContent.Skies.CreditsRoll.CreditsRollComposer._originAtBottom, Terraria.GameContent.Skies.CreditsRoll.CreditsRollComposer._segments, System.Collections.Generic.List< T >.Add(), Terraria.GameContent.TextureAssets.Extra, Terraria.GameContent.Skies.CreditsRoll.CreditsRollComposer.GetSceneFixVector(), System.item, Terraria.GameContent.Animations.Segments.AnimationSegmentWithActions< T >.Then(), Terraria.GameContent.Animations.Segments.SpriteSegment.UseShaderEffect(), Microsoft.Xna.Framework.Graphics.Vector2, Microsoft.Xna.Framework.Color.White, and Microsoft.Xna.Framework.Vector2.Zero.

Referenced by Terraria.GameContent.Skies.CreditsRoll.CreditsRollComposer.FillSegments().