示例#1
0
    public override void DrawMe()
    {
        InventoryBox.DrawMe();

        if (ItemGrid.IsClicked())
        {
            _maestro.PlayOneShot(ButtonSound);
            _currentItem = (InventoryItem)ItemGrid.SelectedObject;
            LoadItemInCommandBar(_currentItem);
        }

        CommandBar.DrawMe();
        ItemInfoLabel.DrawMe();

        if (EquipItemButton.IsClicked())
        {
            _maestro.PlayOneShot(ButtonSound);
            _controller.EquipItem(_currentItem);
        }

        if (UseItemButton.IsClicked())
        {
            _maestro.PlayOneShot(ButtonSound);
            _controller.UseItem(_currentItem);
        }
    }