Public classes
Controller |
TextCommand
Command to add text on display. This is most common command to be added to Controller. Enums
Constructors
Properties
Enums public enum Fonts List of differents fonts that can be used to display text.
public enum TextAlignments List of possible text alignments in case there's multiple lines of text.
Constructors public TextCommand (string text) Create new text command. By default character spacing is one dot, and used character is 'fixed width' without bolding. Linebreak characters ('\n' or '\r') will cut the text to multiple lines.
public TextCommand (string[] textLines) Create new text command with multiple lines of text. By default character and line spacing are one dot, and used character is 'fixed width' without bolding.
Properties public int BackColor Set or get text background color. This is index of color, and colors themselves are defined in DotMatrix Display (typically in Unity inspector window). Default text background color is 0. That is "dot off-state" in display.
public bool Bold Set or get text to be bold. Default is false (not bold).
public int CharSpacing Set or get character spacing. Default is 1.
public bool FixedWidth Set or get text to be fixed width. Default is true (using fixed width).
public Fonts Font Set or get font used for this text. If font is not set, Controller default is used.
public int LineSpacing Set or get line spacing. Default is 1.
public TextAlignments TextAlignment Set or get text alignment. This have effect only if there is multiple lines of text. By default text alignment follows content horizontal position. For example, if content horizontal position is right, also multiple lines of text are aligned to right. In most cases this is wanted and there is no need to set TextAlignment.
public int TextColor Set or get text color. This is index of color, and colors themselves are defined in DotMatrix Display (typically in Unity inspector window). Default text color is 1. That is default "dot on-state" in display. In case of two-color display that is also only dot on-state.
|