コード例 #1
0
        private static void Postfix(ItemDescriptionPage __instance, GearItem gi)
        {
            if (__instance != InterfaceManager.m_Panel_Inventory?.m_ItemDescriptionPage)
            {
                return;
            }

            WaterButtons.currentLiquidItemShowing = gi?.GetComponent <LiquidItem>();
            if (WaterButtons.currentLiquidItemShowing == null || WaterButtons.currentLiquidItemShowing.m_LiquidType != GearLiquidTypeEnum.Water)
            {
                WaterButtons.SetActive(false);
            }
            else
            {
                WaterButtons.SetActive(true);
            }
        }
コード例 #2
0
 private static void Postfix(Panel_Inventory __instance)
 {
     WaterButtons.Initialize(__instance.m_ItemDescriptionPage);
 }