Ejemplo n.º 1
0
    public static void Equipment_MouseDown(MouseEventArgs e)
    {
        Point Panel_Position = Panels.Locate("Menu_Character").Geral.Position;

        for (byte i = 0; i <= (byte)Jogo.Equipments.Amount - 1; i++)
        {
            if (IsOverlapping(new Rectangle(Panel_Position.X + 7 + i * 36, Panel_Position.Y + 247, 32, 32)))
            {
                // Remove o Equipment
                if (e.Button == MouseButtons.Right)
                {
                    Sending.Equipment_Remove(i);
                    return;
                }
            }
        }
    }