Exemplo n.º 1
0
 public static void Postfix()
 {
     if (VillagersList.Instance == null)
     {
         Main.Logger.Log($"create ui: {VillagersList.Load()}");
     }
     else
     {
         VillagersList.Instance.Init();
         if (!VillagersList.Instance.Open)
         {
             VillagersList.Instance.ToggleWindow();
         }
     }
 }
Exemplo n.º 2
0
        private static void Postfix(ui_TopBar __instance)
        {
            Debug.Log("ui_Topbar awake!");
            TopBar = __instance;

            if (VillagersList.Instance == null)
            {
                Main.Logger.Log($"create ui: {VillagersList.Load()}");
            }
            else
            {
                VillagersList.Instance.Init();
                if (!VillagersList.Instance.Open)
                {
                    VillagersList.Instance.ToggleWindow();
                }
            }
        }