public static void Postfix(Panel_BreakDown __instance, bool enable) { if (!Cooking.IsCookware(__instance.m_BreakDown)) { return; } if (enable) { buttonPickUp = Object.Instantiate(__instance.m_BreakDownButton, __instance.m_BreakDownButton.transform.parent); Vector3 position = __instance.m_BreakDownButton.transform.position; position.y -= 0.2f; buttonPickUp.transform.position = position; buttonPickUp.GetComponentInChildren <UILocalize>().key = "GAMEPLAY_PickUp"; UIButton uiButton = buttonPickUp.GetComponentInChildren <UIButton>(); uiButton.onClick.Clear(); uiButton.onClick.Add(new EventDelegate(OnPickup)); } else { Object.Destroy(buttonPickUp); } }
public static void Postfix(Panel_FeedFire __instance) { if (__instance.m_TabWater.activeSelf) { Cooking.RefreshTabWater(__instance); } }
internal static void OnPickup() { Panel_BreakDown panelBreakDown = InterfaceManager.m_Panel_BreakDown; panelBreakDown.Enable(false); Cooking.SetCurrentBreakDown(panelBreakDown.m_BreakDown); GameManager.GetPlayerManagerComponent().ProcessInspectablePickupItem(Cooking.CurrentBreakDownReplacement); }
public static void Postfix(Panel_FeedFire __instance) { if (__instance.m_TabWater.activeSelf) { Cooking.ShowCookingGearInInspect(__instance); } else { Cooking.HideCookingGearInInspect(__instance); } }
public static void Postfix(Panel_FeedFire __instance, bool enable) { if (enable) { Cooking.SelectCookingGear(); Cooking.Configure(__instance); } else { Cooking.Restore(__instance); Cooking.UnselectCookingGear(); } }
public static bool Prefix(Panel_BreakDown __instance) { if (!Cooking.IsCookware(__instance.m_BreakDown)) { return(true); } __instance.m_ButtonLegendContainer.BeginUpdate(); __instance.m_ButtonLegendContainer.UpdateButton("Inventory_Examine", "GAMEPLAY_PickUp", !__instance.IsBreakingDown(), 2, true); __instance.m_ButtonLegendContainer.UpdateButton("Continue", "GAMEPLAY_BreakDown", !__instance.IsBreakingDown(), 1, true); __instance.m_ButtonLegendContainer.UpdateButton("Escape", "GAMEPLAY_ButtonBack", !__instance.IsBreakingDown(), 0, true); __instance.m_ButtonLegendContainer.EndUpdate(); return(false); }
public static bool Prefix(BreakDown __instance, ref bool __result) { if (!__instance.gameObject.activeSelf) { return(true); } if (Cooking.IsCookware(__instance)) { GameAudioManager.PlayGUIMenuOpen(); InterfaceManager.m_Panel_BreakDown.m_BreakDown = __instance; InterfaceManager.m_Panel_BreakDown.Enable(true); return(false); } return(true); }
public static void Postfix(Panel_FeedFire __instance) { Cooking.Prepare(__instance); }
public static void Postfix(Panel_FeedFire __instance) { Cooking.ClampBoilWaterAmount(__instance); }
public static void Postfix(Panel_FeedFire __instance) { Cooking.ClampMeltSnowAmount(__instance); }
public static void Postfix(PlayerManager __instance) { Cooking.ConsumeCurrentBreakDown(); }