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

◆ PlaySegment_ClothierChasingTruffle()

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

Definition at line 1556 of file CreditsRollComposer.cs.

1557 {
1559 int num = startTime;
1560 int num2 = 10;
1561 sceneAnchorPosition.X += num2;
1562 Asset<Texture2D> val = TextureAssets.Extra[225];
1563 Rectangle rectangle = val.Frame();
1564 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);
1568 .Then(new Actions.NPCs.Wait(60))
1569 .Then(new Actions.NPCs.LookAt(-1));
1571 num += (int)animationSegmentWithActions2.DedicatedTimeNeeded;
1572 int num3 = 60;
1576 num += num3;
1580 num += num3;
1581 Vector2 vector = new Vector2(1.2f, 0f);
1582 Vector2 vector2 = new Vector2(1f, 0f);
1584 .Then(new Actions.NPCs.Move(vector, 130))
1585 .With(new Actions.NPCs.Fade(2, 127));
1586 animationSegmentWithActions2.Then(new Actions.NPCs.Move(vector2, 60)).Then(new Actions.NPCs.Move(vector2, 130)).With(new Actions.NPCs.Fade(2, 127));
1587 animationSegmentWithActions.Then(new Actions.Sprites.Wait(60)).Then(new Actions.Sprites.Wait(130)).With(new Actions.Sprites.Fade(0f, 127));
1588 int num4 = 10;
1589 int num5 = 40;
1590 int timeToPlay = 70;
1599 num += 200;
1600 SegmentInforReport result = default(SegmentInforReport);
1601 result.totalTime = num - startTime;
1602 return result;
1603 }
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().