ActiveTextureManagement.ActiveTextureManagement.DrawMainWindow C# (CSharp) Метод

DrawMainWindow() приватный Метод

private DrawMainWindow ( int windowID ) : void
windowID int
Результат void
        private void DrawMainWindow(int windowID)
        {
            GUIStyle gs = new GUIStyle(GUI.skin.label);
            GUIStyle gsBox = new GUIStyle(GUI.skin.box);

            int itemFullWidth = (int)_mainWindowRect.width - 30;
            int itemHalfWidth = (int)_mainWindowRect.width/2 - 20;
            int itemQuarterWidth = (int)_mainWindowRect.width / 4 - 20;
            int itemMidStart = (int)_mainWindowRect.width - (15 + itemHalfWidth);
            int itemThirdWidth = (int)_mainWindowRect.width / 3 - 20;
            int itemTwoThirdStart = itemThirdWidth + 20;
            int itemTwoThirdWidth = (int)_mainWindowRect.width - (35+itemThirdWidth);
            int itemQuarterThirdWidth = itemHalfWidth + 5 - itemTwoThirdStart;

            GUI.Box(new Rect(0, 0, _mainWindowRect.width, _mainWindowRect.height), "");

            GUI.Box(new Rect(10, 20, itemThirdWidth, 210), "");
            String[] folderList = foldersExList.ToArray();
            ScrollFolderList = GUI.BeginScrollView(new Rect(15, 25, itemThirdWidth - 10, 195), ScrollFolderList, new Rect(0, 0, itemThirdWidth - 30, 25 * folderList.Length));
            float folderWidth = folderList.Length > 7 ? itemThirdWidth - 30 : itemThirdWidth - 10;
            selectedFolder = selectedFolder >= folderList.Length ? 0 : selectedFolder;
            int OldSelectedFolder = selectedFolder;
            selectedFolder = GUI.SelectionGrid(new Rect(0, 0, folderWidth, 25 * folderList.Length), selectedFolder, folderList, 1);
            GUI.EndScrollView();

            String folder = folderList[selectedFolder];

            String memFormatString = "{0,7}kB {1,4}MB";
            long bSaved = folderBytesSaved[folderList[selectedFolder]];
            long kbSaved = (long)(bSaved / 1024f);
            long mbSaved = (long)(kbSaved / 1024f);
            String memoryString = String.Format("Memory Saved: " + memFormatString, kbSaved, mbSaved);
            GUI.Label(new Rect(itemMidStart, 55, itemHalfWidth, 25), memoryString);

            String[] Modes = {"Normal List", "Overrides"};
            //selectedMode = GUI.SelectionGrid(new Rect(itemTwoThirdStart, 25, itemQuarterThirdWidth, 25 * Modes.Length), selectedMode, Modes, 1);
            selectedMode = GUI.Toolbar(new Rect(itemMidStart, 25, itemHalfWidth, 25), selectedMode, Modes);
            if(selectedMode == 0)
            {
                GUI.Box(new Rect(itemTwoThirdStart, 85, itemTwoThirdWidth, 145), "");

            }
            GUI.DragWindow(new Rect(0, 0, 10000, 10000));
        }