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

◆ PlaySegment_Grox_WitchDoctorGoingToHisPeople()

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

Definition at line 640 of file CreditsRollComposer.cs.

641 {
643 int num = startTime;
644 int num2 = 0;
645 sceneAnchorPosition.X += num2;
646 int num3 = 60;
647 Asset<Texture2D> val = TextureAssets.Extra[231];
648 Rectangle rectangle = val.Frame();
649 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);
651 .Then(new Actions.Sprites.Wait(120));
654 .Then(new Actions.NPCs.Move(new Vector2(0.5f, 0f), 120));
656 .Then(new Actions.NPCs.Move(new Vector2(0.5f, 0f), 120));
657 Point[] frameIndices = new Point[5]
658 {
659 new Point(0, 3),
660 new Point(0, 4),
661 new Point(0, 5),
662 new Point(0, 6),
663 new Point(0, 7)
664 };
665 Point[] frameIndices2 = new Point[4]
666 {
667 new Point(0, 3),
668 new Point(0, 2),
669 new Point(0, 1),
670 new Point(0, 0)
671 };
672 Main.instance.LoadNPC(199);
673 Asset<Texture2D> val2 = TextureAssets.Npc[199];
674 Rectangle rectangle2 = val2.Frame(1, Main.npcFrameCount[199]);
675 DrawData data2 = new DrawData(val2.Value, Vector2.Zero, rectangle2, Color.White, 0f, rectangle2.Size() * new Vector2(0.5f, 1f), 1f, SpriteEffects.None);
676 new DrawData(val2.Value, Vector2.Zero, rectangle2, Color.White, 0f, rectangle2.Size() * new Vector2(0.5f, 1f), 1f, SpriteEffects.FlipHorizontally);
678 .Then(new Actions.NPCs.Wait(120));
680 .Then(new Actions.Sprites.SimulateGravity(new Vector2(-1f, 0f), Vector2.Zero, 0f, 120))
681 .With(new Actions.Sprites.SetFrameSequence(120, frameIndices, 6, 0, 0));
682 num += (int)animationSegmentWithActions2.DedicatedTimeNeeded;
683 int num4 = 120;
685 int num5 = 6;
691 num += num4;
692 int durationInFrames = num4 - num5 * 4;
701 num += num4;
702 int num6 = 60;
704 animationSegmentWithActions2.Then(new Actions.NPCs.Move(new Vector2(0.5f, 0f), num6));
708 num += num6;
715 num += num4;
722 num += num4;
723 int num7 = num4 + num4 / 2;
731 num += num7;
739 num += num4;
740 animationSegmentWithActions3.Then(new Actions.NPCs.Move(new Vector2(-0.4f, 0f), 160)).With(new Actions.NPCs.Fade(2, 127));
741 animationSegmentWithActions2.Then(new Actions.NPCs.Move(new Vector2(-0.5f, 0f), 160)).With(new Actions.NPCs.Fade(2, 127));
742 animationSegmentWithActions4.Then(new Actions.NPCs.Move(new Vector2(-0.8f, 0f), 160)).With(new Actions.NPCs.Fade(2, 127));
743 animationSegmentWithActions6.Then(new Actions.NPCs.Move(new Vector2(-0.8f, 0f), 160)).With(new Actions.NPCs.Fade(2, 127));
745 num += 187;
759 SegmentInforReport result = default(SegmentInforReport);
760 result.totalTime = num - startTime;
761 return result;
762 }
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(), Terraria.Main.instance, System.item, Terraria.GameContent.TextureAssets.Npc, Terraria.Main.npcFrameCount, Microsoft.Xna.Framework.Graphics.Point, 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().