Window which displays a scrollable text area and two buttons at the bottom.
Inheritance: EditorWindow
Exemplo n.º 1
0
        public static TextAreaDialog CreateTextAreaDialog(string title)
        {
            TextAreaDialog textAreaDialog = (TextAreaDialog)EditorWindow.GetWindow(typeof(TextAreaDialog), true, title, true);

            textAreaDialog.Initialize();
            return(textAreaDialog);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Create a log redirector associated with this window.
 /// </summary>
 public LogRedirector(TextAreaDialog window)
 {
     this.window       = window;
     LogToWindow       = (string message, LogLevel level) => LogMessage(message, level);
     ErrorLogged       = false;
     WarningLogged     = false;
     ShouldLogDelegate = () => { return(true); };
 }