示例#1
0
        internal void AddWindow(string name, IDebugConsoleWindow window)
        {
            int windowId = this.windowNames.Count;

            this.windowNames.Add(windowId, name);

            this.windows.Add(windowId, window);

            window.SetupWindow(windowId, this);
        }
示例#2
0
        private void DrawWindow(int windowId)
        {
            IDebugConsoleWindow window = this.windows[this.toolbarIndex];

            GUI.Box(this.scrollRect, String.Empty);

            window.DrawWindow(windowId, this);

            this.DrawToolbar();
        }
示例#3
0
 public static void RegisterWindow(string name, IDebugConsoleWindow window)
 {
     DebugConsole.Instance.AddWindow(name, window);
 }