Class StandardOutput
Last update: 09.03.2026Namespace: OpenTD.UserInterface
Assembly: OpenTD.dll
A standard place to write output messages from OpenTD client programs. Destination defaults to an OutputDialog, but can be redirected by subscribing to the OnWrite event.
public static class StandardOutput
Inheritance
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
HideDialog()
Hides the default StandardOutput dialog.
public static void HideDialog()
ShowDialog()
Shows the default StandardOutput dialog.
public static void ShowDialog()
Write(string)
Writes the specified message to StandardOutput.
public static void Write(string msg)
Parameters
msg string
The message.
Write(string, params object[])
Writes the specified format string to StandardOutput.
public static void Write(string format, params object[] args)
Parameters
format string
args object[]
Write(object)
Uses ToString() to write the specified object to StandardOutput.
public static void Write(object x)
Parameters
x object
WriteLine(string)
Writes the specified message to StandardOutput, followed by newline.
public static void WriteLine(string msg)
Parameters
msg string
The message.
WriteLine(string, params object[])
Writes the specified format string to StandardOutput, followed by newline.
public static void WriteLine(string format, params object[] args)
Parameters
format string
args object[]
WriteLine(object)
Uses ToString() to write the specified object to StandardOutput, followed by newline.
public static void WriteLine(object x)
Parameters
x object
The x.
WriteLine()
Writes newline to StandardOutput.
public static void WriteLine()
OnWrite
Subscribe to this event to route StandardOutput to a custom destination.
public static event EventHandler<WriteEventArgs> OnWrite