Exemple #1
0
        public void OnGui()
        {
            var visibleWindow = IsVisible();

            if (visibleWindow == VisibleWindow.None)
            {
                _lastVisibleWindow = VisibleWindow.None;
                if (_guiActive)
                {
                    _folderTreeView?.StopMonitoringFiles();
                }
                _guiActive = false;
                return;
            }

            _guiActive = true;
            if (_lastVisibleWindow != visibleWindow)
            {
                RefreshCurrentWindow();
            }

            var screenRect = GetDisplayRect();

            IMGUIUtils.DrawSolidBox(screenRect);
            GUILayout.Window(362, screenRect, TreeWindow, "Select character folder");
            IMGUIUtils.EatInputInRect(screenRect);
        }
Exemple #2
0
        public void OnGui()
        {
            //todo  When loading a coordinate it resets to the main folder without deselect in menu
            var visibleWindow = IsVisible();

            if (visibleWindow == VisibleWindow.None)
            {
                _lastRefreshed = VisibleWindow.None;
                if (_guiActive)
                {
                    _folderTreeView?.StopMonitoringFiles();
                    _guiActive = false;
                }
                return;
            }

            _guiActive = true;
            if (_lastRefreshed != visibleWindow)
            {
                RefreshCurrentWindow();
            }

            var screenRect = MakerFolders.GetDisplayRect();

            IMGUIUtils.DrawSolidBox(screenRect);
            GUILayout.Window(362, screenRect, TreeWindow, "Select clothes folder");
            IMGUIUtils.EatInputInRect(screenRect);
        }
Exemple #3
0
 public void OnGui()
 {
     if (_studioInitObject != null)
     {
         var screenRect = new Rect((int)(Screen.width / 11.3f), (int)(Screen.height / 90f), (int)(Screen.width / 2.5f), (int)(Screen.height / 5f));
         IMGUIUtils.DrawSolidBox(screenRect);
         GUILayout.Window(362, screenRect, TreeWindow, "Select folder with scenes to view");
         IMGUIUtils.EatInputInRect(screenRect);
     }
     else
     {
         _folderTreeView?.StopMonitoringFiles();
     }
 }