To track the "current selected" slot exactly, we have to monitoring many events
But in fact, we already has
m_SelectedSlot and m_ItemViewSlots in container
Could you please help to add public perperty whose getter return these two memeber?
so that we could do similar thing via
ClientInventoryGrid.OnItemViewSlotSelected += OnClientSlotSelected;
ClientInventoryGrid.OnItemViewSlotDeselected += OnClientSlotDeselected;
StorageInventoryGrid.OnItemViewSlotSelected += OnStorageSlotSelected;
StorageInventoryGrid.OnItemViewSlotDeselected += OnStorageSlotDeselected;
But in fact, we already has
m_SelectedSlot and m_ItemViewSlots in container
Could you please help to add public perperty whose getter return these two memeber?
so that we could do similar thing via
just like what we did forvar cur_slot = ClientInventoryGrid.SelectedSlot;
public IReadOnlyList<ItemViewSlot> ItemViewSlots => m_ItemViewSlots;