static bool PickupableStorage_OnHandHover_Prefix(PickupableStorage __instance) { setColliderEnabled(__instance, false); HandReticle.main.setText(textHand: ""); return(false); }
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); }
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); } }
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); } }
static void Prefix(PickupableStorage __instance) => __instance.allowPickupWhenNonEmpty = true;
protected override void Start() { base.Start(); storage = gameObject.getParent().GetComponentInChildren <PickupableStorage>(true); }