/// <summary> /// Appends the start light blue text control character (0x05) to the message, and executes the specified action. /// </summary> /// <param name="this"></param> /// <param name="action"></param> /// <returns></returns> public static MessageEntryBuilder.MessageBuilder LightBlue(this MessageEntryBuilder.MessageBuilder @this, Action action) { @this.StartLightBlueText(); action(); @this.PopTextColor(); return(@this); }
/// <summary> /// Appends the start pink text control character (0x06) to the message, and executes the specified action. /// </summary> /// <param name="this"></param> /// <param name="action"></param> /// <returns></returns> public static MessageEntryBuilder.MessageBuilder Pink(this MessageEntryBuilder.MessageBuilder @this, Action action) { @this.StartPinkText(); action(); @this.PopTextColor(); return(@this); }
/// <summary> /// Appends the given text color control character to the message, and executes the specified action. /// </summary> /// <param name="this">this message builder</param> /// <param name="action"></param> /// <returns></returns> public static MessageEntryBuilder.MessageBuilder TextColor(this MessageEntryBuilder.MessageBuilder @this, char color, Action action) { @this.PushTextColor(color); action(); @this.PopTextColor(); return(@this); }