Esempio n. 1
0
                static bool PickupableStorage_OnHandHover_Prefix(PickupableStorage __instance)
                {
                    setColliderEnabled(__instance, false);
                    HandReticle.main.setText(textHand: "");

                    return(false);
                }
Esempio n. 2
0
        public static bool isAllowedToPickUpNonEmpty(this PickupableStorage storage)
        {
#if GAME_SN
            return(false);
#elif GAME_BZ
            return(storage.allowPickupWhenNonEmpty);
#endif
        }
        public static bool Prefix(PickupableStorage __instance, GUIHand hand)
        {
            if (QMultiModSettings.Instance.StorageContainersStack)
            {
                __instance.pickupable.OnHandClick(hand);
                return(false);
            }

            return(true);
        }
Esempio n. 4
0
            public static bool Prefix(PickupableStorage __instance, GUIHand hand)
            {
                TechType type = __instance.pickupable.GetTechType();

                if (PFC_Config.Enable && type == TechType.LuggageBag || type == TechType.SmallStorage)
                {
                    __instance.pickupable.OnHandHover(hand);
                    return(false);
                }
                else
                {
                    return(true);
                }
            }
Esempio n. 5
0
 public static bool Prefix(PickupableStorage __instance, GUIHand hand)
 {
     try
     {
         TechType type = __instance.pickupable.GetTechType();
         if (PFC_Config.Enable && type == TechType.LuggageBag || type == TechType.SmallStorage)
         {
             __instance.pickupable.OnHandHover(hand);
             return(false);
         }
         else
         {
             return(true);
         }
     }
     catch (Exception e)
     {
         Logger.Exception(e, LoggedWhen.InPatch, QMod.assembly);
         return(false);
     }
 }
Esempio n. 6
0
 static void Prefix(PickupableStorage __instance) => __instance.allowPickupWhenNonEmpty = true;
Esempio n. 7
0
 protected override void Start()
 {
     base.Start();
     storage = gameObject.getParent().GetComponentInChildren <PickupableStorage>(true);
 }