using System.Windows.Forms; using JD.Serialization; namespace JD.Timeline.View.ClipView.Widgets { class GameplayEventClipWidget : ClipWithActorWidget { public GameplayEventClipWidget(GameplayEventClip model) : base(model) { } public new GameplayEventClip Model { get { return (GameplayEventClip)base.Model; } } protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); if (Model.CustomParam != null && Model.CustomParam.Length > 0) DrawText(e.Graphics, "", $"{Model.ToString()} / {Model.CustomParam}", 1); else DrawText(e.Graphics, "", Model.ToString(), 1); } } }