增加导出速度设置

This commit is contained in:
ww-rm
2025-07-24 21:31:05 +08:00
parent a44161053b
commit bff3b39371
11 changed files with 76 additions and 34 deletions

View File

@@ -64,6 +64,7 @@ namespace SpineViewer.ViewModels.Exporters
{
BackgroundColor = new(_backgroundColor.R, _backgroundColor.G, _backgroundColor.B, _backgroundColor.A),
Fps = _fps,
Speed = _speed,
KeepLast = _keepLast,
Format = _format,
Codec = _codec,

View File

@@ -54,6 +54,7 @@ namespace SpineViewer.ViewModels.Exporters
{
BackgroundColor = new(_backgroundColor.R, _backgroundColor.G, _backgroundColor.B, _backgroundColor.A),
Fps = _fps,
Speed = _speed,
KeepLast = _keepLast,
Format = _format,
Loop = _loop,

View File

@@ -34,6 +34,7 @@ namespace SpineViewer.ViewModels.Exporters
{
BackgroundColor = new(_backgroundColor.R, _backgroundColor.G, _backgroundColor.B, _backgroundColor.A),
Fps = _fps,
Speed = _speed,
KeepLast = _keepLast
};

View File

@@ -16,6 +16,9 @@ namespace SpineViewer.ViewModels.Exporters
public uint Fps { get => _fps; set => SetProperty(ref _fps, Math.Max(1, value)); }
protected uint _fps = 30;
public float Speed { get => _speed; set => SetProperty(ref _speed, Math.Clamp(value, 0.001f, 1000f)); }
protected float _speed = 1f;
public bool KeepLast { get => _keepLast; set => SetProperty(ref _keepLast, value); }
protected bool _keepLast = true;
}