Class MessagePart
- Namespace
- Archipelago.MultiClient.Net.MessageLog.Parts
- Assembly
- Archipelago.MultiClient.Net.dll
Part of a LogMessage that contains information on how to display the piece of text
public class MessagePart
- Inheritance
-
MessagePart
- Derived
- Inherited Members
Properties
Color
The color corresponding to PaletteColor in the built-in dark palette.
public Color Color { get; }
Property Value
IsBackgroundColor
Whether this message part's color is intended to represent a background color
public bool IsBackgroundColor { get; }
Property Value
PaletteColor
The specified color for this message part, or null if not specified.
public PaletteColor? PaletteColor { get; protected set; }
Property Value
Text
The text to display
public string Text { get; }
Property Value
Type
The type of message part
public MessagePartType Type { get; }
Property Value
Methods
GetColor<T>(Palette<T>)
Gets the color corresponding to PaletteColor in the specified palette.
public T GetColor<T>(Palette<T> palette)
Parameters
palette
Palette<T>The palette to retrieve the color from
Returns
- T
Type Parameters
T
ToString()
The text to display of this message part
public override string ToString()