示例#1
0
 private static void Postfix(PlayerBackpack __instance, InventorySlot slot, eInventoryItemStatus status)
 {
     if (__instance.IsLocal)
     {
         BackpackEvents.SlotStatusChanged(slot, status);
     }
 }
示例#2
0
 private void ItemStatusChanged(InventorySlot slot, eInventoryItemStatus status)
 {
     if (m_radialItems.TryGetValue(slot, out RadialItem item))
     {
         if (status.Equals(eInventoryItemStatus.Deployed))
         {
             item.Active = false;
             item.SetInfoText("DEPLOYED");
         }
         else
         {
             item.Active = true;
         }
     }
 }
示例#3
0
 public static void SlotStatusChanged(InventorySlot slot, eInventoryItemStatus status)
 {
     OnNewItemStatus?.Invoke(slot, status);
 }