コード例 #1
0
 private static void Postfix(HomeSystemWindow __instance)
 {
     if (!Main.on)
     {
         return;
     }
     __instance.gameObject.AddComponent <ActionsComponent>()
     .OnCheck(CHECK_TYPE.CLOSE)
     .AddAction(() => {
         if (HomeSystemWindow.Instance.skillView.activeInHierarchy)
         {
             var homeViewButtom = Utils.GetUI("ui_HomeViewBottom");
             if (homeViewButtom)
             {
                 HomeSystemWindow.Instance.ShowSkillView();
                 Traverse.Create(homeViewButtom).Method("ToggleZoomButtons").GetValue();
             }
         }
         else
         {
             Utils.CloseHomeSystemWindow();
         }
     });
 }