using Newtonsoft.Json; using RhythmBase.Components; namespace RhythmBase.Events { /// public partial class Comment : BaseDecorationAction { /// /// Initializes a new instance of the class. /// public Comment() { Text = ""; Color = new PaletteColor(false) { Color = RDColor.FromRgba(242, 230, 68) }; Type = EventType.Comment; } /// /// Gets or sets the custom tab. /// [JsonProperty("tab")] public Tabs CustomTab { get; set; } /// [JsonIgnore] public override Tabs Tab => CustomTab; /// /// Gets or sets a value indicating whether this is shown. /// public bool Show { get; set; } /// /// Gets or sets the text of the comment. /// public string Text { get; set; } /// public override string Target => base.Target; /// /// Gets or sets the color of the comment. /// public PaletteColor Color { get; set; } /// public override EventType Type { get; } /// /// Returns a string that represents the current object. /// /// A string that represents the current object. public override string ToString() => base.ToString() + string.Format(" {0}", Text); } }