예제 #1
0
        void TreeNodeCreated(object sender, TreeViewEventArgs e)
        {
            SolutionNode sn = e.Node as SolutionNode;

            if (sn != null)
            {
                if (CanBeVersionControlledDirectory(sn.Solution.Directory))
                {
                    OverlayIconManager.Enqueue(sn);
                }
            }
            else
            {
                DirectoryNode dn = e.Node as DirectoryNode;
                if (dn != null)
                {
                    if (CanBeVersionControlledDirectory(dn.Directory))
                    {
                        OverlayIconManager.Enqueue(dn);
                    }
                }
                else
                {
                    FileNode fn = e.Node as FileNode;
                    if (fn != null)
                    {
                        if (CanBeVersionControlledFile(fn.FileName))
                        {
                            OverlayIconManager.Enqueue(fn);
                        }
                    }
                }
            }
        }
        static void CallbackInvoked()
        {
            OverlayIconManager.ClearStatusCache();
            AbstractProjectBrowserTreeNode node = ProjectBrowserPad.Instance.SelectedNode;

            if (node != null)
            {
                OverlayIconManager.EnqueueRecursive(node);
            }
        }
예제 #3
0
        void ClearStatusCacheAndEnqueueFile(string fileName)
        {
            OverlayIconManager.ClearStatusCache();

            ProjectBrowserPad pad = ProjectBrowserPad.Instance;

            if (pad == null)
            {
                return;
            }
            FileNode node = pad.ProjectBrowserControl.FindFileNode(fileName);

            if (node == null)
            {
                return;
            }
            OverlayIconManager.Enqueue(node);
        }
예제 #4
0
 private void Awake()
 {
     BuildMission.ActiveMissions.Clear();
     Clock.Day = 0;
     if (!this.MainScene)
     {
         RainEffigy.RainAdd       = 0;
         Scene.FinishGameLoad     = false;
         LoadingProgress.Progress = 0f;
         InsideCheck.ClearStaticVars();
         SteamClientDSConfig.Clear();
         CoopLobby.HostGuid = null;
         OverlayIconManager.Clear();
         Cheats.SetAllowed(true);
     }
     AssetBundleManager.Initialize();
     Time.timeScale = 1f;
 }