Exemple #1
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);
        }
        public void OnGui()
        {
            var guiShown = false;

            // Check the opened category
            if (_catToggle != null && _catToggle.isOn && _targetScene == Scene.Instance.AddSceneName)
            {
                // Check opened tab
                if (_loadCharaToggle != null && _loadCharaToggle.isOn || _saveCharaToggle != null && _saveCharaToggle.isOn)
                {
                    // Check if the character picture take screen is displayed
                    if (_saveFront == null || !_saveFront.activeSelf)
                    {
                        if (_refreshList)
                        {
                            _folderTreeView.ResetTreeCache();
                            OnFolderChanged();
                            _refreshList = false;
                        }

                        var screenRect = new Rect((int)(Screen.width * 0.004), (int)(Screen.height * 0.57f), (int)(Screen.width * 0.125), (int)(Screen.height * 0.35));
                        IMGUIUtils.DrawSolidBox(screenRect);
                        GUILayout.Window(362, screenRect, TreeWindow, "Select character folder");
                        IMGUIUtils.EatInputInRect(screenRect);
                        guiShown = true;
                    }
                }
            }
            if (!guiShown)
            {
                _folderTreeView?.StopMonitoringFiles();
            }
        }
Exemple #3
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 #4
0
 private void OnGUI()
 {
     if(show)
     {
         GUILayout.Window(0, rect, DrawWindow, "", GUI.skin.box);
         IMGUIUtils.EatInputInRect(rect);
     }
 }
 protected void OnGUI()
 {
     if (uiShow)
     {
         IMGUIUtils.DrawSolidBox(uiRect);
         uiRect = GUILayout.Window(uiWindowHash, uiRect, WindowFunction, "Screenshot settings");
         IMGUIUtils.EatInputInRect(uiRect);
     }
 }
Exemple #6
0
 public void OnGui()
 {
     if (_uiObject && _uiObject.activeSelf && _sceneName == Scene.AddSceneName && !Scene.IsOverlap && !Scene.IsNowLoadingFade)
     {
         var screenRect = new Rect((int)(Screen.width * 0.004), (int)(Screen.height * 0.57f), (int)(Screen.width * 0.125), (int)(Screen.height * 0.35));
         IMGUIUtils.DrawSolidBox(screenRect);
         GUILayout.Window(36, screenRect, TreeWindow, "Select outfit folder");
         IMGUIUtils.EatInputInRect(screenRect);
     }
     else
     {
         _folderTreeView?.StopMonitoringFiles();
     }
 }
 public void OnGui()
 {
     if (_customCharaFile != null && _customCharaFile.isVisible && _targetScene == Scene.Instance.AddSceneName)
     {
         var screenRect = GetFullscreenBrowserRect();
         IMGUIUtils.DrawSolidBox(screenRect);
         GUILayout.Window(362, screenRect, TreeWindow, "Select character folder");
         IMGUIUtils.EatInputInRect(screenRect);
     }
     else
     {
         _folderTreeView?.StopMonitoringFiles();
     }
 }
Exemple #8
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();
     }
 }
Exemple #9
0
 public void OnGui()
 {
     if (_newGame != null && _targetScene == Scene.AddSceneName && !Scene.IsOverlap && !Scene.IsNowLoadingFade)
     {
         var screenRect = GetFullscreenBrowserRect();
         IMGUIUtils.DrawSolidBox(screenRect);
         GUILayout.Window(362, screenRect, TreeWindow, "Select character folder");
         IMGUIUtils.EatInputInRect(screenRect);
     }
     else
     {
         _folderTreeView?.StopMonitoringFiles();
     }
 }
Exemple #10
0
        public void OnGui()
        {
            if (_motionIKUI != null && _targetScene == Scene.Instance.AddSceneName)
            {
                if (_refreshList)
                {
                    _refreshList = false;
                }

                var screenRect = new Rect((int)(Screen.width * 0.004), (int)(Screen.height * 0.57f),
                                          (int)(Screen.width * 0.125), (int)(Screen.height * 0.35));
                IMGUIUtils.DrawSolidBox(screenRect);
                GUILayout.Window(362, screenRect, TreeWindow, "Select hik folder");
                IMGUIUtils.EatInputInRect(screenRect);
            }
        }
Exemple #11
0
 public void OnGui()
 {
     if (_freeHFile != null && !_isLive && _targetScene == Scene.Instance.AddSceneName)
     {
         _guiActive = true;
         var screenRect = ClassroomFolders.GetFullscreenBrowserRect();
         IMGUIUtils.DrawSolidBox(screenRect);
         GUILayout.Window(362, screenRect, TreeWindow, "Select character folder");
         IMGUIUtils.EatInputInRect(screenRect);
     }
     else if (_guiActive)
     {
         _folderTreeView?.StopMonitoringFiles();
         _guiActive = false;
     }
 }
Exemple #12
0
 public void OnGui()
 {
     if (_uiObject && _uiObject.activeSelf && _sceneName == Manager.Scene.Instance.AddSceneName)
     {
         _guiActive = true;
         var screenRect = new Rect((int)(Screen.width * 0.04), (int)(Screen.height * 0.57f), (int)(Screen.width * 0.125), (int)(Screen.height * 0.35));
         IMGUIUtils.DrawSolidBox(screenRect);
         GUILayout.Window(362, screenRect, TreeWindow, "Select outfit folder");
         IMGUIUtils.EatInputInRect(screenRect);
     }
     else if (_guiActive)
     {
         _folderTreeView?.StopMonitoringFiles();
         _guiActive = false;
     }
 }
 public void OnGui()
 {
     if (_costumeInfoEntry != null)
     {
         if (_costumeInfoEntry.isActive())
         {
             var windowRect = new Rect((int)(Screen.width * 0.06f), (int)(Screen.height * 0.32f),
                                       (int)(Screen.width * 0.13f), (int)(Screen.height * 0.4f));
             IMGUIUtils.DrawSolidBox(windowRect);
             GUILayout.Window(363, windowRect, id => TreeWindow(), "Folder with outfits to view");
             IMGUIUtils.EatInputInRect(windowRect);
         }
         else
         {
             _costumeInfoEntry.FolderTreeView?.StopMonitoringFiles();
         }
     }
 }
Exemple #14
0
        public void OnGui()
        {
            // Check the opened category
            if (_hEditLoadSceneWindow != null && _targetScene == Scene.Instance.AddSceneName)
            {
                if (_refreshList)
                {
                    OnFolderChanged();
                    _refreshList = false;
                }

                var screenRect = new Rect((int)(Screen.width * 0.004), (int)(Screen.height * 0.55f),
                                          (int)(Screen.width * 0.125), (int)(Screen.height * 0.35));
                IMGUIUtils.DrawSolidBox(screenRect);
                GUILayout.Window(362, screenRect, TreeWindow, "Select scene folder");
                IMGUIUtils.EatInputInRect(screenRect);
            }
        }
        public void OnGui()
        {
            var entry = _charaListEntries.Values.SingleOrDefault(x => x.isActiveAndEnabled);

            if (_lastEntry != null && _lastEntry != entry)
            {
                _lastEntry.FolderTreeView?.StopMonitoringFiles();
                _lastEntry = null;
            }
            if (entry == null)
            {
                return;
            }
            _lastEntry = entry;
            var windowRect = new Rect((int)(Screen.width * 0.06f), (int)(Screen.height * 0.32f), (int)(Screen.width * 0.13f), (int)(Screen.height * 0.4f));

            IMGUIUtils.DrawSolidBox(windowRect);
            GUILayout.Window(363, windowRect, id => TreeWindow(entry), "Select folder with cards to view");
            IMGUIUtils.EatInputInRect(windowRect);
        }
        public void OnGui()
        {
            if (!IsVisible())
            {
                return;
            }

            if (_refreshList)
            {
                OnFolderChanged();
                _refreshList = false;
            }

            var screenRect = new Rect((int)(Screen.width * 0.004), (int)(Screen.height * 0.57f),
                                      (int)(Screen.width * 0.125), (int)(Screen.height * 0.35));

            IMGUIUtils.DrawSolidBox(screenRect);
            GUILayout.Window(362, screenRect, TreeWindow, "Select outfit folder");
            IMGUIUtils.EatInputInRect(screenRect);
        }
Exemple #17
0
        public void OnGui()
        {
            var entry = Helper.GetActiveEntry();

            if (_lastEntry != null && _lastEntry != entry)
            {
                _lastEntry.FolderTreeView?.StopMonitoringFiles();
                _lastEntry = null;
            }

            if (entry == null)
            {
                return;
            }
            _lastEntry = entry;
            var windowRect = GetMainRect();

            IMGUIUtils.DrawSolidBox(windowRect);
            GUILayout.Window(363, windowRect, id => TreeWindow(entry), WindowLabel);
            IMGUIUtils.EatInputInRect(windowRect);
        }
        public void OnGui()
        {
            var guiShown = false;

            if (_hToggle)                                                        //if preset window is active draw file select
            {
                if (Input.GetMouseButtonDown(1) || Input.GetKeyDown(KeyCode.F1)) //if right click or F1 close
                {
                    GameObject.Find("Canvas/clothesFileWindow").SetActive(false);
                    DisablePreset();
                }
                var screenRect = new Rect((int)(Screen.width * 0.04), (int)(Screen.height * 0.57f), (int)(Screen.width * 0.125), (int)(Screen.height * 0.35));
                IMGUIUtils.DrawSolidBox(screenRect);
                GUILayout.Window(362, screenRect, TreeWindow, "Select outfit folder");
                IMGUIUtils.EatInputInRect(screenRect);
                guiShown = true;
            }
            if (!guiShown)
            {
                _folderTreeView?.StopMonitoringFiles();
            }
        }