Ejemplo n.º 1
0
        private void Tablet2Clicked(UIMouseEvent evt, UIElement listeningElement)
        {
            Main.NewText("Test Cursor");
            IncPlayer ic = Main.player[Main.myPlayer].GetModPlayer <IncPlayer>();

            ic.magicCursor = !ic.magicCursor;
        }
Ejemplo n.º 2
0
 public override void Update(GameTime gameTime)
 {
     base.Update(gameTime);
     if (tabletKill.IsMouseHovering)
     {
         Main.hoverItemName = "Hostile Entity Butcher";
     }
     if (tabletMove.IsMouseHovering)
     {
         IncPlayer ic    = Main.player[Main.myPlayer].GetModPlayer <IncPlayer>();
         string    hover = ic.magicCursor ? "Disable Magic Cursor" : "Enable Magic Cursor";
         Main.hoverItemName = hover;
     }
 }