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

◆ PlaySegment_Grox_WizardPartyGirlDyeTraderAndPainterPartyWithBunnies()

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

Definition at line 1295 of file CreditsRollComposer.cs.

1296 {
1298 int num = startTime;
1299 int num2 = -35;
1300 sceneAnchorPosition.X += num2;
1301 int num3 = 34;
1302 Asset<Texture2D> val = TextureAssets.Extra[221];
1303 Rectangle rectangle = val.Frame();
1304 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);
1306 .Then(new Actions.Sprites.Wait(60));
1309 .With(new Actions.NPCs.Fade(-5, 51))
1310 .Then(new Actions.NPCs.Wait(60));
1312 .With(new Actions.NPCs.Fade(-5, 51))
1313 .Then(new Actions.NPCs.Wait(60));
1315 .With(new Actions.NPCs.Fade(-5, 51))
1316 .Then(new Actions.NPCs.Move(new Vector2(-1f, 0f), 60));
1318 .Then(new Actions.NPCs.Fade(255))
1319 .With(new Actions.NPCs.Fade(-5, 51))
1320 .Then(new Actions.NPCs.Move(new Vector2(1f, 0f), 60));
1322 .Then(new Actions.NPCs.Move(new Vector2(-1f, 0f), 60));
1323 Asset<Texture2D> val2 = TextureAssets.Extra[238];
1324 Rectangle rectangle2 = val2.Frame(1, 4);
1325 DrawData data2 = new DrawData(val2.Value, Vector2.Zero, rectangle2, Color.White, 0f, rectangle2.Size() * new Vector2(0.5f, 1f), 1f, SpriteEffects.FlipHorizontally);
1328 num += (int)animationSegmentWithActions2.DedicatedTimeNeeded;
1329 int num4 = 90;
1330 int num5 = num4 * 4;
1336 animationSegmentWithActions3.Then(new Actions.NPCs.Wait(num4 * 2)).Then(new Actions.NPCs.LookAt(1)).Then(new Actions.NPCs.Wait(num4))
1337 .Then(new Actions.NPCs.LookAt(-1))
1338 .Then(new Actions.NPCs.Wait(num4));
1341 animationSegmentWithActions6.Then(new Actions.NPCs.Move(new Vector2(-0.5f, 0f), num5 / 3)).Then(new Actions.NPCs.Wait(num5 / 3)).Then(new Actions.NPCs.Move(new Vector2(0.4f, 0f), num5 / 3));
1342 animationSegmentWithActions5.Then(new Actions.NPCs.Move(new Vector2(-0.6f, 0f), num5 / 3)).Then(new Actions.NPCs.Move(new Vector2(0.5f, 0f), num5 / 3)).Then(new Actions.NPCs.Wait(num5 / 3));
1343 num += num5;
1345 .With(new Actions.NPCs.Fade(-5, 51))
1346 .Then(new Actions.NPCs.Move(new Vector2(-1f, 0f), 60));
1347 int num6 = (int)animationSegmentWithActions9.DedicatedTimeNeeded - 60;
1348 num += num6;
1356 num += num4;
1376 num += num4;
1378 {
1379 new Point(0, 0),
1380 new Point(0, 1),
1381 new Point(0, 2),
1382 new Point(0, 3)
1383 }, 10, 0, 0));
1385 {
1386 new Point(0, 2),
1387 new Point(0, 3),
1388 new Point(0, 0),
1389 new Point(0, 1)
1390 }, 10, 0, 0));
1391 animationSegmentWithActions2.Then(new Actions.NPCs.Move(new Vector2(1f, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1392 animationSegmentWithActions3.Then(new Actions.NPCs.Move(new Vector2(1f, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1393 animationSegmentWithActions4.Then(new Actions.NPCs.Move(new Vector2(1f, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1394 animationSegmentWithActions6.Then(new Actions.NPCs.Move(new Vector2(0.5f, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1395 animationSegmentWithActions5.Then(new Actions.NPCs.Move(new Vector2(0.75f, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1396 animationSegmentWithActions9.Then(new Actions.NPCs.Move(new Vector2(0.5f, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1400 num += 187;
1419 SegmentInforReport result = default(SegmentInforReport);
1420 result.totalTime = num - startTime;
1421 return result;
1422 }
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().