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

◆ PlaySegment_Grox_WitchDoctorGoingToHisPeople()

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

Definition at line 1105 of file CreditsRollComposer.cs.

1106 {
1107 //IL_0000: Unknown result type (might be due to invalid IL or missing references)
1108 //IL_0002: Unknown result type (might be due to invalid IL or missing references)
1109 //IL_0007: Unknown result type (might be due to invalid IL or missing references)
1110 //IL_000c: Unknown result type (might be due to invalid IL or missing references)
1111 //IL_0035: Unknown result type (might be due to invalid IL or missing references)
1112 //IL_003a: Unknown result type (might be due to invalid IL or missing references)
1113 //IL_0044: Unknown result type (might be due to invalid IL or missing references)
1114 //IL_0049: Unknown result type (might be due to invalid IL or missing references)
1115 //IL_0050: Unknown result type (might be due to invalid IL or missing references)
1116 //IL_005a: Unknown result type (might be due to invalid IL or missing references)
1117 //IL_005c: Unknown result type (might be due to invalid IL or missing references)
1118 //IL_006b: Unknown result type (might be due to invalid IL or missing references)
1119 //IL_0070: Unknown result type (might be due to invalid IL or missing references)
1120 //IL_007c: Unknown result type (might be due to invalid IL or missing references)
1121 //IL_0081: Unknown result type (might be due to invalid IL or missing references)
1122 //IL_009a: Unknown result type (might be due to invalid IL or missing references)
1123 //IL_009c: Unknown result type (might be due to invalid IL or missing references)
1124 //IL_00a1: Unknown result type (might be due to invalid IL or missing references)
1125 //IL_00fe: Unknown result type (might be due to invalid IL or missing references)
1126 //IL_0109: Unknown result type (might be due to invalid IL or missing references)
1127 //IL_010e: Unknown result type (might be due to invalid IL or missing references)
1128 //IL_0114: Unknown result type (might be due to invalid IL or missing references)
1129 //IL_0150: Unknown result type (might be due to invalid IL or missing references)
1130 //IL_0169: Unknown result type (might be due to invalid IL or missing references)
1131 //IL_0174: Unknown result type (might be due to invalid IL or missing references)
1132 //IL_0179: Unknown result type (might be due to invalid IL or missing references)
1133 //IL_017f: Unknown result type (might be due to invalid IL or missing references)
1134 //IL_01bb: Unknown result type (might be due to invalid IL or missing references)
1135 //IL_01d8: Unknown result type (might be due to invalid IL or missing references)
1136 //IL_01dd: Unknown result type (might be due to invalid IL or missing references)
1137 //IL_01e6: Unknown result type (might be due to invalid IL or missing references)
1138 //IL_01eb: Unknown result type (might be due to invalid IL or missing references)
1139 //IL_01f4: Unknown result type (might be due to invalid IL or missing references)
1140 //IL_01f9: Unknown result type (might be due to invalid IL or missing references)
1141 //IL_0202: Unknown result type (might be due to invalid IL or missing references)
1142 //IL_0207: Unknown result type (might be due to invalid IL or missing references)
1143 //IL_0210: Unknown result type (might be due to invalid IL or missing references)
1144 //IL_0215: Unknown result type (might be due to invalid IL or missing references)
1145 //IL_0226: Unknown result type (might be due to invalid IL or missing references)
1146 //IL_022b: Unknown result type (might be due to invalid IL or missing references)
1147 //IL_0234: Unknown result type (might be due to invalid IL or missing references)
1148 //IL_0239: Unknown result type (might be due to invalid IL or missing references)
1149 //IL_0242: Unknown result type (might be due to invalid IL or missing references)
1150 //IL_0247: Unknown result type (might be due to invalid IL or missing references)
1151 //IL_0250: Unknown result type (might be due to invalid IL or missing references)
1152 //IL_0255: Unknown result type (might be due to invalid IL or missing references)
1153 //IL_028a: Unknown result type (might be due to invalid IL or missing references)
1154 //IL_028f: Unknown result type (might be due to invalid IL or missing references)
1155 //IL_029a: Unknown result type (might be due to invalid IL or missing references)
1156 //IL_029f: Unknown result type (might be due to invalid IL or missing references)
1157 //IL_02a6: Unknown result type (might be due to invalid IL or missing references)
1158 //IL_02b0: Unknown result type (might be due to invalid IL or missing references)
1159 //IL_02b2: Unknown result type (might be due to invalid IL or missing references)
1160 //IL_02c1: Unknown result type (might be due to invalid IL or missing references)
1161 //IL_02c6: Unknown result type (might be due to invalid IL or missing references)
1162 //IL_02e2: Unknown result type (might be due to invalid IL or missing references)
1163 //IL_02e7: Unknown result type (might be due to invalid IL or missing references)
1164 //IL_02ee: Unknown result type (might be due to invalid IL or missing references)
1165 //IL_02f8: Unknown result type (might be due to invalid IL or missing references)
1166 //IL_02fa: Unknown result type (might be due to invalid IL or missing references)
1167 //IL_0309: Unknown result type (might be due to invalid IL or missing references)
1168 //IL_030e: Unknown result type (might be due to invalid IL or missing references)
1169 //IL_032a: Unknown result type (might be due to invalid IL or missing references)
1170 //IL_0334: Unknown result type (might be due to invalid IL or missing references)
1171 //IL_0339: Unknown result type (might be due to invalid IL or missing references)
1172 //IL_033f: Unknown result type (might be due to invalid IL or missing references)
1173 //IL_0384: Unknown result type (might be due to invalid IL or missing references)
1174 //IL_0394: Unknown result type (might be due to invalid IL or missing references)
1175 //IL_0399: Unknown result type (might be due to invalid IL or missing references)
1176 //IL_03db: Unknown result type (might be due to invalid IL or missing references)
1177 //IL_03e0: Unknown result type (might be due to invalid IL or missing references)
1178 //IL_041d: Unknown result type (might be due to invalid IL or missing references)
1179 //IL_0428: Unknown result type (might be due to invalid IL or missing references)
1180 //IL_042d: Unknown result type (might be due to invalid IL or missing references)
1181 //IL_0433: Unknown result type (might be due to invalid IL or missing references)
1182 //IL_0438: Unknown result type (might be due to invalid IL or missing references)
1183 //IL_0440: Unknown result type (might be due to invalid IL or missing references)
1184 //IL_0446: Unknown result type (might be due to invalid IL or missing references)
1185 //IL_04bd: Unknown result type (might be due to invalid IL or missing references)
1186 //IL_04ca: Unknown result type (might be due to invalid IL or missing references)
1187 //IL_04cf: Unknown result type (might be due to invalid IL or missing references)
1188 //IL_04d5: Unknown result type (might be due to invalid IL or missing references)
1189 //IL_04fd: Unknown result type (might be due to invalid IL or missing references)
1190 //IL_0508: Unknown result type (might be due to invalid IL or missing references)
1191 //IL_050d: Unknown result type (might be due to invalid IL or missing references)
1192 //IL_0513: Unknown result type (might be due to invalid IL or missing references)
1193 //IL_0518: Unknown result type (might be due to invalid IL or missing references)
1194 //IL_0520: Unknown result type (might be due to invalid IL or missing references)
1195 //IL_0526: Unknown result type (might be due to invalid IL or missing references)
1196 //IL_05ac: Unknown result type (might be due to invalid IL or missing references)
1197 //IL_05f5: Unknown result type (might be due to invalid IL or missing references)
1198 //IL_05ff: Unknown result type (might be due to invalid IL or missing references)
1199 //IL_0604: Unknown result type (might be due to invalid IL or missing references)
1200 //IL_060a: Unknown result type (might be due to invalid IL or missing references)
1201 //IL_060f: Unknown result type (might be due to invalid IL or missing references)
1202 //IL_0617: Unknown result type (might be due to invalid IL or missing references)
1203 //IL_061d: Unknown result type (might be due to invalid IL or missing references)
1204 //IL_0691: Unknown result type (might be due to invalid IL or missing references)
1205 //IL_069c: Unknown result type (might be due to invalid IL or missing references)
1206 //IL_06a1: Unknown result type (might be due to invalid IL or missing references)
1207 //IL_06a7: Unknown result type (might be due to invalid IL or missing references)
1208 //IL_06ac: Unknown result type (might be due to invalid IL or missing references)
1209 //IL_06b4: Unknown result type (might be due to invalid IL or missing references)
1210 //IL_06ba: Unknown result type (might be due to invalid IL or missing references)
1211 //IL_0721: Unknown result type (might be due to invalid IL or missing references)
1212 //IL_072b: Unknown result type (might be due to invalid IL or missing references)
1213 //IL_0730: Unknown result type (might be due to invalid IL or missing references)
1214 //IL_0736: Unknown result type (might be due to invalid IL or missing references)
1215 //IL_073b: Unknown result type (might be due to invalid IL or missing references)
1216 //IL_0743: Unknown result type (might be due to invalid IL or missing references)
1217 //IL_0749: Unknown result type (might be due to invalid IL or missing references)
1218 //IL_075b: Unknown result type (might be due to invalid IL or missing references)
1219 //IL_0768: Unknown result type (might be due to invalid IL or missing references)
1220 //IL_076d: Unknown result type (might be due to invalid IL or missing references)
1221 //IL_0773: Unknown result type (might be due to invalid IL or missing references)
1222 //IL_0778: Unknown result type (might be due to invalid IL or missing references)
1223 //IL_0780: Unknown result type (might be due to invalid IL or missing references)
1224 //IL_0786: Unknown result type (might be due to invalid IL or missing references)
1225 //IL_07e4: Unknown result type (might be due to invalid IL or missing references)
1226 //IL_07ef: Unknown result type (might be due to invalid IL or missing references)
1227 //IL_07f4: Unknown result type (might be due to invalid IL or missing references)
1228 //IL_07fa: Unknown result type (might be due to invalid IL or missing references)
1229 //IL_07ff: Unknown result type (might be due to invalid IL or missing references)
1230 //IL_0807: Unknown result type (might be due to invalid IL or missing references)
1231 //IL_080d: Unknown result type (might be due to invalid IL or missing references)
1232 //IL_081a: Unknown result type (might be due to invalid IL or missing references)
1233 //IL_0825: Unknown result type (might be due to invalid IL or missing references)
1234 //IL_082a: Unknown result type (might be due to invalid IL or missing references)
1235 //IL_0830: Unknown result type (might be due to invalid IL or missing references)
1236 //IL_0835: Unknown result type (might be due to invalid IL or missing references)
1237 //IL_083d: Unknown result type (might be due to invalid IL or missing references)
1238 //IL_0843: Unknown result type (might be due to invalid IL or missing references)
1239 //IL_08a8: Unknown result type (might be due to invalid IL or missing references)
1240 //IL_08d6: Unknown result type (might be due to invalid IL or missing references)
1241 //IL_0904: Unknown result type (might be due to invalid IL or missing references)
1242 //IL_0932: Unknown result type (might be due to invalid IL or missing references)
1244 int num = startTime;
1245 int num2 = 0;
1246 sceneAnchorPosition.X += num2;
1247 int num3 = 60;
1248 Asset<Texture2D> asset = TextureAssets.Extra[231];
1249 Rectangle rectangle = asset.Frame();
1250 DrawData data = new DrawData(asset.Value, Vector2.Zero, rectangle, Color.White, 0f, rectangle.Size() * new Vector2(0.5f, 1f) + new Vector2((float)num2, -42f), 1f, (SpriteEffects)0);
1252 .Then(new Actions.Sprites.Wait(120));
1255 .Then(new Actions.NPCs.Move(new Vector2(0.5f, 0f), 120));
1257 .Then(new Actions.NPCs.Move(new Vector2(0.5f, 0f), 120));
1258 Point[] frameIndices = (Point[])(object)new Point[5]
1259 {
1260 new Point(0, 3),
1261 new Point(0, 4),
1262 new Point(0, 5),
1263 new Point(0, 6),
1264 new Point(0, 7)
1265 };
1266 Point[] frameIndices2 = (Point[])(object)new Point[4]
1267 {
1268 new Point(0, 3),
1269 new Point(0, 2),
1270 new Point(0, 1),
1271 new Point(0, 0)
1272 };
1273 Main.instance.LoadNPC(199);
1274 Asset<Texture2D> asset2 = TextureAssets.Npc[199];
1275 Rectangle rectangle2 = asset2.Frame(1, Main.npcFrameCount[199]);
1276 DrawData data2 = new DrawData(asset2.Value, Vector2.Zero, rectangle2, Color.White, 0f, rectangle2.Size() * new Vector2(0.5f, 1f), 1f, (SpriteEffects)0);
1277 new DrawData(asset2.Value, Vector2.Zero, rectangle2, Color.White, 0f, rectangle2.Size() * new Vector2(0.5f, 1f), 1f, (SpriteEffects)1);
1279 .Then(new Actions.NPCs.Wait(120));
1281 .Then(new Actions.Sprites.SimulateGravity(new Vector2(-1f, 0f), Vector2.Zero, 0f, 120))
1282 .With(new Actions.Sprites.SetFrameSequence(120, frameIndices, 6, 0, 0));
1283 num += (int)animationSegmentWithActions2.DedicatedTimeNeeded;
1284 int num4 = 120;
1285 Segments.EmoteSegment item = new Segments.EmoteSegment(10, num, num4, sceneAnchorPosition + new Vector2(0f, 0f) + _emoteBubbleOffsetWhenOnLeft, (SpriteEffects)1);
1286 int num5 = 6;
1292 num += num4;
1293 int durationInFrames = num4 - num5 * 4;
1295 Segments.EmoteSegment item2 = new Segments.EmoteSegment(92, num, num4, sceneAnchorPosition + new Vector2(-50f, 0f) + _emoteBubbleOffsetWhenOnLeft, (SpriteEffects)1);
1302 num += num4;
1303 int num6 = 60;
1305 animationSegmentWithActions2.Then(new Actions.NPCs.Move(new Vector2(0.5f, 0f), num6));
1309 num += num6;
1310 Segments.EmoteSegment item3 = new Segments.EmoteSegment(87, num, num4, sceneAnchorPosition + new Vector2((float)(num3 * 2), 0f) + _emoteBubbleOffsetWhenOnLeft, (SpriteEffects)1);
1316 num += num4;
1317 Segments.EmoteSegment item4 = new Segments.EmoteSegment(49, num, num4, sceneAnchorPosition + new Vector2(30f, 0f) + _emoteBubbleOffsetWhenOnLeft, (SpriteEffects)1);
1323 num += num4;
1324 int num7 = num4 + num4 / 2;
1325 Segments.EmoteSegment item5 = new Segments.EmoteSegment(10, num, num4, sceneAnchorPosition + new Vector2((float)(num3 * 2), 0f) + _emoteBubbleOffsetWhenOnRight, (SpriteEffects)0);
1326 Segments.EmoteSegment item6 = new Segments.EmoteSegment(0, num + num4 / 2, num4, sceneAnchorPosition + new Vector2((float)(num3 * 3 - 20), 0f) + _emoteBubbleOffsetWhenOnRight, (SpriteEffects)0);
1332 num += num7;
1333 Segments.EmoteSegment item7 = new Segments.EmoteSegment(17, num, num4, sceneAnchorPosition + new Vector2(-50f, 0f) + _emoteBubbleOffsetWhenOnLeft, (SpriteEffects)1);
1340 num += num4;
1341 animationSegmentWithActions3.Then(new Actions.NPCs.Move(new Vector2(-0.4f, 0f), 160)).With(new Actions.NPCs.Fade(2, 127));
1342 animationSegmentWithActions2.Then(new Actions.NPCs.Move(new Vector2(-0.5f, 0f), 160)).With(new Actions.NPCs.Fade(2, 127));
1343 animationSegmentWithActions4.Then(new Actions.NPCs.Move(new Vector2(-0.8f, 0f), 160)).With(new Actions.NPCs.Fade(2, 127));
1344 animationSegmentWithActions6.Then(new Actions.NPCs.Move(new Vector2(-0.8f, 0f), 160)).With(new Actions.NPCs.Fade(2, 127));
1346 num += 187;
1352 _segments.Add(item);
1353 _segments.Add(item2);
1354 _segments.Add(item3);
1355 _segments.Add(item4);
1356 _segments.Add(item5);
1357 _segments.Add(item6);
1358 _segments.Add(item8);
1359 _segments.Add(item7);
1361 result.totalTime = num - startTime;
1362 return result;
1363 }
AnimationSegmentWithActions< T > Then(IAnimationSegmentAction< T > act)
Definition Segments.cs:128
SpriteSegment UseShaderEffect(IShaderEffect shaderEffect)
Definition Segments.cs:469

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, Terraria.GameContent.TextureAssets.Extra, Terraria.GameContent.Skies.CreditsRoll.CreditsRollComposer.GetSceneFixVector(), Terraria.Main.instance, Terraria.GameContent.TextureAssets.Npc, Terraria.Main.npcFrameCount, Terraria.GameContent.Animations.Segments.AnimationSegmentWithActions< T >.Then(), and Terraria.GameContent.Animations.Segments.SpriteSegment.UseShaderEffect().

Referenced by Terraria.GameContent.Skies.CreditsRoll.CreditsRollComposer.FillSegments().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: