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

◆ Draw()

void Terraria.ModLoader.ModDust.Draw ( Dust dust,
Color alpha,
float scale )
inlinepackage

Definition at line 42 of file ModDust.cs.

43 {
44 //IL_0011: Unknown result type (might be due to invalid IL or missing references)
45 //IL_0016: Unknown result type (might be due to invalid IL or missing references)
46 //IL_001b: Unknown result type (might be due to invalid IL or missing references)
47 //IL_0021: Unknown result type (might be due to invalid IL or missing references)
48 //IL_002b: Unknown result type (might be due to invalid IL or missing references)
49 //IL_003c: Unknown result type (might be due to invalid IL or missing references)
50 //IL_004e: Unknown result type (might be due to invalid IL or missing references)
51 //IL_0055: Unknown result type (might be due to invalid IL or missing references)
52 //IL_005b: Unknown result type (might be due to invalid IL or missing references)
53 //IL_0074: Unknown result type (might be due to invalid IL or missing references)
54 //IL_0079: Unknown result type (might be due to invalid IL or missing references)
55 //IL_007e: Unknown result type (might be due to invalid IL or missing references)
56 //IL_0084: Unknown result type (might be due to invalid IL or missing references)
57 //IL_008f: Unknown result type (might be due to invalid IL or missing references)
58 //IL_0090: Unknown result type (might be due to invalid IL or missing references)
59 //IL_00a5: Unknown result type (might be due to invalid IL or missing references)
60 Main.spriteBatch.Draw(Texture2D.Value, dust.position - Main.screenPosition, (Rectangle?)dust.frame, alpha, dust.rotation, new Vector2(4f, 4f), scale, (SpriteEffects)0, 0f);
61 if (dust.color != default(Color))
62 {
63 Main.spriteBatch.Draw(Texture2D.Value, dust.position - Main.screenPosition, (Rectangle?)dust.frame, dust.GetColor(alpha), dust.rotation, new Vector2(4f, 4f), scale, (SpriteEffects)0, 0f);
64 }
65 }

References Terraria.Dust.color, Terraria.Dust.frame, Terraria.Dust.GetColor(), Terraria.Dust.position, Terraria.Dust.rotation, Terraria.Main.screenPosition, and Terraria.Main.spriteBatch.

+ Here is the call graph for this function: