add script graphics element (#2681)

* add script graphics element

* pass template data as json to stdin

* update changelog
This commit is contained in:
Jason Dove
2025-11-30 14:20:18 -06:00
committed by GitHub
parent 42bcadf936
commit c524bc0d7d
19 changed files with 379 additions and 55 deletions
@@ -0,0 +1,27 @@
using YamlDotNet.Serialization;
namespace ErsatzTV.Core.Graphics;
public class ScriptGraphicsElement : BaseGraphicsElement
{
[YamlMember(Alias = "command", ApplyNamingConventions = false)]
public string Command { get; set; }
[YamlMember(Alias = "args", ApplyNamingConventions = false)]
public List<string> Arguments { get; set; }
[YamlMember(Alias = "z_index", ApplyNamingConventions = false)]
public int? ZIndex { get; set; }
[YamlMember(Alias = "epg_entries", ApplyNamingConventions = false)]
public int EpgEntries { get; set; }
[YamlMember(Alias = "start_seconds", ApplyNamingConventions = false)]
public double? StartSeconds { get; set; }
[YamlMember(Alias = "duration_seconds", ApplyNamingConventions = false)]
public double? DurationSeconds { get; set; }
[YamlMember(Alias = "pixel_format", ApplyNamingConventions = false)]
public string PixelFormat { get; set; }
}