Beispiel #1
0
 private void SelectSlot(DrawSpot spot)
 {
     SelectedSpot           = spot;
     SelectedSpot._Selected = true;
     _InventoryManager.SelectItem(spot.mySlot.ItemInSlot);
     //_InventoryManager.selectedItem = spot.mySlot.ItemInSlot;
 }
Beispiel #2
0
        public override void LoadContent(string path, ContentManager content)
        {
            base.LoadContent(path, content);

            for (int i = 0; i < _InventoryManager.capacity; i++)
            {
                DrawSpot spot = new DrawSpot(extraTex);
                _PanelSpots.Add(spot);
            }
        }
Beispiel #3
0
 private void DeselectSlot()
 {
     if (SelectedSpot == null)
     {
         return;
     }
     SelectedSpot._Selected = false;
     SelectedSpot           = null;
     if (_InventoryManager.selectedItem != null)
     {
         _InventoryManager.selectedItem = null;
     }
 }