133 行
3.5 KiB
C#
133 行
3.5 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.Globalization;
|
|
using YukkuriMovieMaker.Commons;
|
|
using YukkuriMovieMaker.Exo;
|
|
using YukkuriMovieMaker.ItemEditor;
|
|
using YukkuriMovieMaker.Player.Video;
|
|
using YukkuriMovieMaker.Plugin;
|
|
using YukkuriMovieMaker.Plugin.Shape;
|
|
using YukkuriMovieMaker.Project;
|
|
using YukkuriMovieMaker.UndoRedo;
|
|
|
|
namespace Foreign
|
|
{
|
|
public sealed class Animation
|
|
{
|
|
public double Length { get; set; }
|
|
}
|
|
|
|
public static class ForeignTexts
|
|
{
|
|
public static string Name => IsJapanese ? "他社のぼかし" : "Foreign blur";
|
|
|
|
public static string Amount => IsJapanese ? "強さ" : "Strength";
|
|
|
|
public static bool IsJapanese => CultureInfo.CurrentUICulture.TwoLetterISOLanguageName == "ja";
|
|
}
|
|
|
|
public abstract class FakeShapeParameter : ShapeParameterBase
|
|
{
|
|
int width;
|
|
|
|
protected FakeShapeParameter()
|
|
: base(null)
|
|
{
|
|
}
|
|
|
|
public int Width
|
|
{
|
|
get => width;
|
|
set => Set(ref width, value);
|
|
}
|
|
|
|
public override IEnumerable<string> CreateMaskExoFilter(int keyFrameIndex, ExoOutputDescription desc, ShapeMaskExoOutputDescription shapeMaskParameters) => [];
|
|
|
|
public override IEnumerable<string> CreateShapeItemExoFilter(int keyFrameIndex, ExoOutputDescription desc) => [];
|
|
|
|
public override IShapeSource CreateShapeSource(IGraphicsDevicesAndContext devices) => throw new NotSupportedException();
|
|
|
|
protected override IEnumerable<IAnimatable> GetAnimatables() => [];
|
|
|
|
protected override void LoadSharedData(SharedDataStore store)
|
|
{
|
|
}
|
|
|
|
protected override void SaveSharedData(SharedDataStore store)
|
|
{
|
|
}
|
|
}
|
|
|
|
public sealed class CandlestickShapeParameter : FakeShapeParameter
|
|
{
|
|
}
|
|
|
|
public sealed class WaveShapeParameter : FakeShapeParameter
|
|
{
|
|
}
|
|
|
|
public sealed class OrphanShapeParameter : FakeShapeParameter
|
|
{
|
|
}
|
|
|
|
public sealed class WaveXShapeParameter : FakeShapeParameter
|
|
{
|
|
}
|
|
|
|
public abstract class FakeShapePlugin : IShapePlugin
|
|
{
|
|
public abstract string Name { get; }
|
|
|
|
public bool IsExoShapeSupported => false;
|
|
|
|
public bool IsExoMaskSupported => false;
|
|
|
|
public IShapeParameter CreateShapeParameter(SharedDataStore? sharedData) => throw new NotSupportedException();
|
|
}
|
|
|
|
public sealed class CandlestickShapePlugin : FakeShapePlugin
|
|
{
|
|
public override string Name => ForeignTexts.IsJapanese ? "ローソク足" : "Candlestick";
|
|
}
|
|
|
|
public sealed class WaveShapePlugin : FakeShapePlugin
|
|
{
|
|
public override string Name => ForeignTexts.IsJapanese ? "うねり" : "Wave";
|
|
}
|
|
|
|
public sealed class WaveformShapePlugin : FakeShapePlugin
|
|
{
|
|
public override string Name => "Waveform";
|
|
}
|
|
|
|
public sealed class ForeignOtherPlugin : IPlugin
|
|
{
|
|
public string Name => "Other";
|
|
}
|
|
|
|
public sealed class BrokenShapePlugin : FakeShapePlugin
|
|
{
|
|
public override string Name => throw new InvalidOperationException("broken");
|
|
}
|
|
|
|
public sealed class ForeignEffect : UndoRedoable
|
|
{
|
|
int amount;
|
|
|
|
public string Label => ForeignTexts.Name;
|
|
|
|
[Display(Name = nameof(ForeignTexts.Amount), ResourceType = typeof(ForeignTexts))]
|
|
public int Amount
|
|
{
|
|
get => amount;
|
|
set => Set(ref amount, value);
|
|
}
|
|
}
|
|
}
|
|
|
|
namespace YukkuriMovieMakerExtras
|
|
{
|
|
public sealed class Animation
|
|
{
|
|
}
|
|
}
|