コード例 #1
0
        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);
            }
        }
コード例 #2
0
 public static void Postfix(Panel_FeedFire __instance)
 {
     if (__instance.m_TabWater.activeSelf)
     {
         Cooking.RefreshTabWater(__instance);
     }
 }
コード例 #3
0
        internal static void OnPickup()
        {
            Panel_BreakDown panelBreakDown = InterfaceManager.m_Panel_BreakDown;

            panelBreakDown.Enable(false);

            Cooking.SetCurrentBreakDown(panelBreakDown.m_BreakDown);
            GameManager.GetPlayerManagerComponent().ProcessInspectablePickupItem(Cooking.CurrentBreakDownReplacement);
        }
コード例 #4
0
 public static void Postfix(Panel_FeedFire __instance)
 {
     if (__instance.m_TabWater.activeSelf)
     {
         Cooking.ShowCookingGearInInspect(__instance);
     }
     else
     {
         Cooking.HideCookingGearInInspect(__instance);
     }
 }
コード例 #5
0
 public static void Postfix(Panel_FeedFire __instance, bool enable)
 {
     if (enable)
     {
         Cooking.SelectCookingGear();
         Cooking.Configure(__instance);
     }
     else
     {
         Cooking.Restore(__instance);
         Cooking.UnselectCookingGear();
     }
 }
コード例 #6
0
        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);
        }
コード例 #7
0
        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);
        }
コード例 #8
0
 public static void Postfix(Panel_FeedFire __instance)
 {
     Cooking.Prepare(__instance);
 }
コード例 #9
0
 public static void Postfix(Panel_FeedFire __instance)
 {
     Cooking.ClampBoilWaterAmount(__instance);
 }
コード例 #10
0
 public static void Postfix(Panel_FeedFire __instance)
 {
     Cooking.ClampMeltSnowAmount(__instance);
 }
コード例 #11
0
 public static void Postfix(PlayerManager __instance)
 {
     Cooking.ConsumeCurrentBreakDown();
 }