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

◆ PlaySegment_Grox_AnglerAndPirateTalkAboutFish()

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

Definition at line 1227 of file CreditsRollComposer.cs.

1228 {
1230 int num = startTime;
1231 int num2 = 30;
1232 sceneAnchorPosition.X += num2;
1233 int num3 = 90;
1234 Asset<Texture2D> val = TextureAssets.Extra[222];
1235 Rectangle rectangle = val.Frame();
1236 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);
1238 .Then(new Actions.Sprites.Wait(60));
1241 .Then(new Actions.NPCs.Wait(60));
1243 .Then(new Actions.NPCs.Move(new Vector2(-1f, 0f), 60));
1244 Asset<Texture2D> val2 = TextureAssets.Extra[226];
1245 Rectangle rectangle2 = val2.Frame(1, 8);
1246 DrawData data2 = new DrawData(val2.Value, Vector2.Zero, rectangle2, Color.White, 0f, rectangle2.Size() * new Vector2(0.5f, 1f), 1f, SpriteEffects.FlipHorizontally);
1248 num += (int)animationSegmentWithActions2.DedicatedTimeNeeded;
1249 int num4 = 90;
1250 int num5 = num4 * 8;
1258 animationSegmentWithActions2.Then(new Actions.NPCs.Wait(num4 * 4)).Then(new Actions.NPCs.ShowItem(num4, 2673)).Then(new Actions.NPCs.Wait(num4))
1259 .Then(new Actions.NPCs.Move(new Vector2(-1f, 0f), num4));
1260 animationSegmentWithActions3.Then(new Actions.NPCs.Wait(num4 * 2)).Then(new Actions.NPCs.ShowItem(num4, 2480)).Then(new Actions.NPCs.Wait(num4 * 4))
1261 .Then(new Actions.NPCs.Move(new Vector2(-1.25f, 0f), num4));
1264 {
1265 new Point(0, 0),
1266 new Point(0, 1),
1267 new Point(0, 2),
1268 new Point(0, 3),
1269 new Point(0, 4),
1270 new Point(0, 5),
1271 new Point(0, 6),
1272 new Point(0, 7)
1273 }, 5, 0, 0));
1274 num += num5;
1275 animationSegmentWithActions2.Then(new Actions.NPCs.Move(new Vector2(-0.4f, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1276 animationSegmentWithActions3.Then(new Actions.NPCs.Move(new Vector2(-0.75f, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1279 num += 187;
1290 SegmentInforReport result = default(SegmentInforReport);
1291 result.totalTime = num - startTime;
1292 return result;
1293 }
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().