Пример #1
0
    private void Window_DoubleClick(object sender, System.EventArgs e)
    {
        // Events em Jogo
        if (Tools.CurrentWindow == Tools.Windows.Jogo)
        {
            // Use item
            byte Slot = Tools.Inventory_Overlapping();
            if (Slot > 0)
            {
                if (Player.Inventory[Slot].Item_Num > 0)
                {
                    Sending.Inventory_Use(Slot);
                }
            }

            // Use o que estiver na hotbar
            Slot = Tools.Hotbar_Overlapping();
            if (Slot > 0)
            {
                if (Player.Hotbar[Slot].Slot > 0)
                {
                    Sending.Hotbar_Use(Slot);
                }
            }
        }
    }