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

◆ PlaySegment_Grox_DemolitionistAndArmsDealerArguingThenNurseComes()

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

Definition at line 1424 of file CreditsRollComposer.cs.

1425 {
1427 int num = startTime;
1428 int num2 = -30;
1429 sceneAnchorPosition.X += num2;
1430 Asset<Texture2D> val = TextureAssets.Extra[234];
1431 Rectangle rectangle = val.Frame();
1432 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);
1434 .Then(new Actions.Sprites.Wait(120));
1437 .Then(new Actions.NPCs.Wait(60));
1438 int num3 = 90;
1440 .Then(new Actions.NPCs.Wait(60));
1441 num += (int)animationSegmentWithActions2.DedicatedTimeNeeded;
1442 int num4 = 90 * 4;
1443 int num5 = 90;
1444 int num6 = 90 / 2;
1445 int num7 = 90 + 90 / 2;
1446 int num8 = 90 * 2;
1454 num += num4;
1455 int num9 = num3 - 30;
1456 int num10 = 120;
1458 .Then(new Actions.NPCs.Wait(20));
1459 int num11 = (int)animationSegmentWithActions4.DedicatedTimeNeeded - num10;
1460 num += num11;
1471 num += num5;
1477 num += num5;
1484 num += num5;
1485 Vector2 vector = new Vector2(-1f, 0f);
1488 int num12 = num5 + num5 / 2;
1491 animationSegmentWithActions4.Then(new Actions.NPCs.Wait(num5 / 2 + 20)).Then(new Actions.NPCs.Move(vector, num5 - 20));
1493 num += num12;
1494 animationSegmentWithActions2.Then(new Actions.NPCs.Move(new Vector2(-0.5f, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1495 animationSegmentWithActions3.Then(new Actions.NPCs.Move(new Vector2(-0.5f, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1496 animationSegmentWithActions4.Then(new Actions.NPCs.Move(new Vector2(-0.5f, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1498 num += 187;
1512 SegmentInforReport result = default(SegmentInforReport);
1513 result.totalTime = num - startTime;
1514 return result;
1515 }
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().