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

◆ PlaySegment_Grox_DryadSayingByeToTavernKeep()

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

Definition at line 355 of file CreditsRollComposer.cs.

356 {
358 int num = startTime;
359 int num2 = 0;
360 sceneAnchorPosition.X += num2;
361 int num3 = 30;
362 int num4 = 10;
363 Asset<Texture2D> val = TextureAssets.Extra[235];
364 Rectangle rectangle = val.Frame();
365 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);
367 .Then(new Actions.Sprites.Wait(120));
369 int num5 = 300;
371 .Then(new Actions.NPCs.Move(new Vector2(-1f, 0f), 120));
373 .Then(new Actions.NPCs.Move(new Vector2(-1f, 0f), 120));
374 Asset<Texture2D> val2 = TextureAssets.Extra[240];
375 Rectangle rectangle2 = val2.Frame(1, 8);
376 DrawData data2 = new DrawData(val2.Value, Vector2.Zero, rectangle2, Color.White, 0f, rectangle2.Size() * new Vector2(0.5f, 1f), 1f, SpriteEffects.None);
378 num += (int)animationSegmentWithActions3.DedicatedTimeNeeded;
379 int num6 = 90;
380 animationSegmentWithActions3.Then(new Actions.NPCs.Move(new Vector2(-1f, 0f), 90));
381 animationSegmentWithActions2.Then(new Actions.NPCs.Move(new Vector2(-1f, 0f), 30));
384 num += 90;
385 int num7 = num6 * 5;
386 int num8 = num4 + num5 - 120 - 30;
387 int num9 = num4 + num5 - 120 - 106 - num3;
399 num += num7;
400 animationSegmentWithActions3.Then(new Actions.NPCs.Move(new Vector2(-1f, 0f), 30));
403 num += 30;
404 Main.instance.LoadNPC(550);
405 Asset<Texture2D> val3 = TextureAssets.Npc[550];
406 Rectangle rectangle3 = val3.Frame(1, Main.npcFrameCount[550]);
407 DrawData data3 = new DrawData(val3.Value, Vector2.Zero, rectangle3, Color.White, 0f, rectangle3.Size() * new Vector2(0.5f, 1f), 1f, SpriteEffects.None);
409 animationSegmentWithActions5.Then(new Actions.Sprites.SimulateGravity(new Vector2(-0.2f, -0.35f), Vector2.Zero, 0f, 80)).With(new Actions.Sprites.SetFrameSequence(80, new Point[13]
410 {
411 new Point(0, 2),
412 new Point(0, 3),
413 new Point(0, 4),
414 new Point(0, 5),
415 new Point(0, 6),
416 new Point(0, 7),
417 new Point(0, 8),
418 new Point(0, 9),
419 new Point(0, 10),
420 new Point(0, 11),
421 new Point(0, 12),
422 new Point(0, 13),
423 new Point(0, 14)
424 }, 4, 0, 0)).With(new Actions.Sprites.Fade(0f, 85));
427 num += 80;
429 {
430 new Point(0, 0),
431 new Point(0, 1),
432 new Point(0, 2),
433 new Point(0, 3),
434 new Point(0, 4),
435 new Point(0, 5),
436 new Point(0, 6),
437 new Point(0, 7)
438 }, 5, 0, 0));
445 num += 187;
456 SegmentInforReport result = default(SegmentInforReport);
457 result.totalTime = num - startTime;
458 return result;
459 }
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, 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().