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

◆ PlaySegment_Grox_SteampunkerRepairingCyborg()

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

Definition at line 461 of file CreditsRollComposer.cs.

462 {
464 int num = startTime;
465 int num2 = 30;
466 sceneAnchorPosition.X += num2;
467 int num3 = 60;
468 Asset<Texture2D> val = TextureAssets.Extra[232];
469 Rectangle rectangle = val.Frame();
470 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);
472 .Then(new Actions.Sprites.Wait(60));
474 val = TextureAssets.Extra[233];
475 rectangle = val.Frame();
476 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);
478 .Then(new Actions.Sprites.Wait(60));
481 Asset<Texture2D> val2 = TextureAssets.Extra[230];
482 Rectangle rectangle2 = val2.Frame(1, 21);
483 DrawData data2 = new DrawData(val2.Value, Vector2.Zero, rectangle2, Color.White, 0f, rectangle2.Size() * new Vector2(0.5f, 1f), 1f, SpriteEffects.None);
485 spriteSegment.Then(new Actions.Sprites.Fade(0f)).With(new Actions.Sprites.Fade(1f, 60)).Then(new Actions.Sprites.Wait(60));
486 Asset<Texture2D> val3 = TextureAssets.Extra[229];
487 Rectangle rectangle3 = val3.Frame(1, 2);
488 DrawData data3 = new DrawData(val3.Value, Vector2.Zero, rectangle3, Color.White, 0f, rectangle3.Size() * new Vector2(0.5f, 1f), 1f, SpriteEffects.None);
490 spriteSegment2.Then(new Actions.Sprites.Fade(0f)).With(new Actions.Sprites.Fade(1f, 60)).Then(new Actions.Sprites.Wait(60));
491 num += (int)spriteSegment.DedicatedTimeNeeded;
492 int num4 = 120;
494 {
495 new Point(0, 0),
496 new Point(0, 1)
497 }, 10, 0, 0));
501 num += num4;
502 Point[] array = new Point[29]
503 {
504 new Point(0, 2),
505 new Point(0, 3),
506 new Point(0, 4),
507 new Point(0, 5),
508 new Point(0, 6),
509 new Point(0, 7),
510 new Point(0, 8),
511 new Point(0, 9),
512 new Point(0, 10),
513 new Point(0, 11),
514 new Point(0, 12),
515 new Point(0, 13),
516 new Point(0, 14),
517 new Point(0, 15),
518 new Point(0, 16),
519 new Point(0, 17),
520 new Point(0, 18),
521 new Point(0, 19),
522 new Point(0, 20),
523 new Point(0, 15),
524 new Point(0, 16),
525 new Point(0, 17),
526 new Point(0, 18),
527 new Point(0, 19),
528 new Point(0, 20),
529 new Point(0, 17),
530 new Point(0, 18),
531 new Point(0, 19),
532 new Point(0, 20)
533 };
534 int num5 = 6;
535 int num6 = num5 * array.Length;
537 int durationInFrames = num6 / 2;
539 spriteSegment2.Then(new Actions.Sprites.SetFrame(0, 1, 0, 0));
543 num += num6;
544 array = new Point[4]
545 {
546 new Point(0, 17),
547 new Point(0, 18),
548 new Point(0, 19),
549 new Point(0, 20)
550 };
551 spriteSegment.Then(new Actions.Sprites.SetFrameSequence(187, array, num5, 0, 0)).With(new Actions.Sprites.Fade(0f, 127));
552 spriteSegment2.Then(new Actions.Sprites.Fade(0f, 127));
554 num += 187;
557 SegmentInforReport result = default(SegmentInforReport);
558 result.totalTime = num - startTime;
559 return result;
560 }
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._segments, System.Collections.Generic.List< T >.Add(), System.array, Terraria.GameContent.TextureAssets.Extra, Terraria.GameContent.Skies.CreditsRoll.CreditsRollComposer.GetSceneFixVector(), 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().