Esempio n. 1
0
 public static void DrawEffects(PlayerDrawInfo drawInfo, ref float r, ref float g, ref float b, ref float a, ref bool fullBright)
 {
     foreach (ModPlayer modPlayer in drawInfo.drawPlayer.modPlayers)
     {
         modPlayer.DrawEffects(drawInfo, ref r, ref g, ref b, ref a, ref fullBright);
     }
 }
Esempio n. 2
0
 public static void ModifyDrawInfo(ref PlayerDrawInfo drawInfo)
 {
     foreach (ModPlayer modPlayer in drawInfo.drawPlayer.modPlayers)
     {
         modPlayer.ModifyDrawInfo(ref drawInfo);
     }
 }
Esempio n. 3
0
 public static void DrawEffects(PlayerDrawInfo drawInfo, ref float r, ref float g, ref float b, ref float a, ref bool fullBright)
 {
     ModPlayer[] modPlayers = drawInfo.drawPlayer.modPlayers;
     foreach (int index in HookDrawEffects.arr)
     {
         modPlayers[index].DrawEffects(drawInfo, ref r, ref g, ref b, ref a, ref fullBright);
     }
 }
Esempio n. 4
0
 public static void ModifyDrawInfo(ref PlayerDrawInfo drawInfo)
 {
     ModPlayer[] modPlayers = drawInfo.drawPlayer.modPlayers;
     foreach (int index in HookModifyDrawInfo.arr)
     {
         modPlayers[index].ModifyDrawInfo(ref drawInfo);
     }
 }
 /// <summary>
 /// Allows you to modify the drawing parameters of the player before drawing begins.
 /// </summary>
 /// <param name="drawInfo"></param>
 public virtual void ModifyDrawInfo(ref PlayerDrawInfo drawInfo)
 {
 }
 /// <summary>
 /// Allows you to create special effects when this player is drawn, such as creating dust, modifying the color the player is drawn in, etc. The fullBright parameter makes it so that the drawn player ignores the modified color and lighting. Note that the fullBright parameter only works if r, g, b, and/or a is not equal to 1. Make sure to add the indexes of any dusts you create to Main.playerDrawDust, and the indexes of any gore you create to Main.playerDrawGore.
 /// </summary>
 /// <param name="drawInfo"></param>
 /// <param name="r"></param>
 /// <param name="g"></param>
 /// <param name="b"></param>
 /// <param name="a"></param>
 /// <param name="fullBright"></param>
 public virtual void DrawEffects(PlayerDrawInfo drawInfo, ref float r, ref float g, ref float b, ref float a, ref bool fullBright)
 {
 }
Esempio n. 7
0
 public static void ModifyDrawInfo(ref PlayerDrawInfo drawInfo)
 {
     foreach (ModPlayer modPlayer in drawInfo.drawPlayer.modPlayers)
     {
         modPlayer.ModifyDrawInfo(ref drawInfo);
     }
 }
Esempio n. 8
0
 public static void DrawEffects(PlayerDrawInfo drawInfo, ref float r, ref float g, ref float b, ref float a, ref bool fullBright)
 {
     foreach (ModPlayer modPlayer in drawInfo.drawPlayer.modPlayers)
     {
         modPlayer.DrawEffects(drawInfo, ref r, ref g, ref b, ref a, ref fullBright);
     }
 }
Esempio n. 9
0
		public override void DrawEffects(PlayerDrawInfo drawInfo, ref float r, ref float g, ref float b, ref float a, ref bool fullBright)
		{
			if (eFlames)
			{
				if (Main.rand.Next(4) == 0 && drawInfo.shadow == 0f)
				{
					int dust = Dust.NewDust(drawInfo.position - new Vector2(2f, 2f), player.width + 4, player.height + 4, mod.DustType("EtherealFlame"), player.velocity.X * 0.4f, player.velocity.Y * 0.4f, 100, default(Color), 3f);
					Main.dust[dust].noGravity = true;
					Main.dust[dust].velocity *= 1.8f;
					Main.dust[dust].velocity.Y -= 0.5f;
					Main.playerDrawDust.Add(dust);
				}
				r *= 0.1f;
				g *= 0.2f;
				b *= 0.7f;
				fullBright = true;
			}
		}
Esempio n. 10
0
		public virtual void DrawEffects(PlayerDrawInfo drawInfo, ref float r, ref float g, ref float b, ref float a, ref bool fullBright)
		{
		}
Esempio n. 11
0
 public virtual void ModifyDrawInfo(ref PlayerDrawInfo drawInfo)
 {
 }