View Source FLHook.XMLText (FLHook Client v2.0.0)
The XML text module allows composing formatted text to be sent via a chat command.
Link to this section Summary
Functions
Adds a format node the specified XML text struct. You can specify a color and optional format flags.
Creates a new XML text struct with the specified content.
Adds a text node to the specified XML text struct.
Converts the XML text struct to a string.
Link to this section Types
@type color() :: {red :: non_neg_integer(), green :: non_neg_integer(), blue :: non_neg_integer()} | String.t()
@type flag() ::
:bold
| :italic
| :underline
| :big
| :big_wide
| :very_big
| :smoothest
| :smoother
| :small
@type t() :: %FLHook.XMLText{chardata: IO.chardata()}
Link to this section Functions
Adds a format node the specified XML text struct. You can specify a color and optional format flags.
@spec new([ {:format, color()} | {:format, color(), flag() | [flag()]} | {:text, String.Chars.t()} | String.Chars.t() ]) :: t()
Creates a new XML text struct with the specified content.
@spec text(t(), String.Chars.t()) :: t()
Adds a text node to the specified XML text struct.
Converts the XML text struct to a string.