コード例 #1
0
        public override void PostDrawInterface(SpriteBatch spriteBatch)
        {
            MPlayer player = Main.player[Main.myPlayer].GetModPlayer <MPlayer>(this);

            player.Draw(spriteBatch);
            base.PostDrawInterface(spriteBatch);
        }
コード例 #2
0
 public override void HotKeyPressed(string name)
 {
     if (PlayerInput.Triggers.JustPressed.KeyStatus[GetTriggerName(this, name)])
     {
         if (name.Equals(changeKey.Name))
         {
             MPlayer player = Main.player[Main.myPlayer].GetModPlayer <MPlayer>(this);
             player.SwapHotbars();
         }
     }
 }