#if false || EPO_DOTWEEN // MODULE_MARKER using EPOOutline; using DG.Tweening.Plugins.Options; using DG.Tweening; using DG.Tweening.Core; namespace DG.Tweening { public static class DOTweenModuleEPOOutline { public static int DOKill(this SerializedPass target, bool complete) { return DOTween.Kill(target, complete); } public static TweenerCore DOFloat(this SerializedPass target, string propertyName, float endValue, float duration) { var tweener = DOTween.To(() => target.GetFloat(propertyName), x => target.SetFloat(propertyName, x), endValue, duration); tweener.SetOptions(true).SetTarget(target); return tweener; } public static TweenerCore DOFade(this SerializedPass target, string propertyName, float endValue, float duration) { var tweener = DOTween.ToAlpha(() => target.GetColor(propertyName), x => target.SetColor(propertyName, x), endValue, duration); tweener.SetOptions(true).SetTarget(target); return tweener; } public static TweenerCore DOColor(this SerializedPass target, string propertyName, Color endValue, float duration) { var tweener = DOTween.To(() => target.GetColor(propertyName), x => target.SetColor(propertyName, x), endValue, duration); tweener.SetOptions(false).SetTarget(target); return tweener; } public static TweenerCore DOVector(this SerializedPass target, string propertyName, Vector4 endValue, float duration) { var tweener = DOTween.To(() => target.GetVector(propertyName), x => target.SetVector(propertyName, x), endValue, duration); tweener.SetOptions(false).SetTarget(target); return tweener; } public static TweenerCore DOFloat(this SerializedPass target, int propertyId, float endValue, float duration) { var tweener = DOTween.To(() => target.GetFloat(propertyId), x => target.SetFloat(propertyId, x), endValue, duration); tweener.SetOptions(true).SetTarget(target); return tweener; } public static TweenerCore DOFade(this SerializedPass target, int propertyId, float endValue, float duration) { var tweener = DOTween.ToAlpha(() => target.GetColor(propertyId), x => target.SetColor(propertyId, x), endValue, duration); tweener.SetOptions(true).SetTarget(target); return tweener; } public static TweenerCore DOColor(this SerializedPass target, int propertyId, Color endValue, float duration) { var tweener = DOTween.To(() => target.GetColor(propertyId), x => target.SetColor(propertyId, x), endValue, duration); tweener.SetOptions(false).SetTarget(target); return tweener; } public static TweenerCore DOVector(this SerializedPass target, int propertyId, Vector4 endValue, float duration) { var tweener = DOTween.To(() => target.GetVector(propertyId), x => target.SetVector(propertyId, x), endValue, duration); tweener.SetOptions(false).SetTarget(target); return tweener; } public static int DOKill(this Outlinable.OutlineProperties target, bool complete = false) { return DOTween.Kill(target, complete); } public static int DOKill(this Outliner target, bool complete = false) { return DOTween.Kill(target, complete); } /// /// Controls the alpha (transparency) of the outline /// public static TweenerCore DOFade(this Outlinable.OutlineProperties target, float endValue, float duration) { var tweener = DOTween.ToAlpha(() => target.Color, x => target.Color = x, endValue, duration); tweener.SetOptions(true).SetTarget(target); return tweener; } /// /// Controls the color of the outline /// public static TweenerCore DOColor(this Outlinable.OutlineProperties target, Color endValue, float duration) { var tweener = DOTween.To(() => target.Color, x => target.Color = x, endValue, duration); tweener.SetOptions(false).SetTarget(target); return tweener; } /// /// Controls the amount of blur applied to the outline /// public static TweenerCore DOBlurShift(this Outlinable.OutlineProperties target, float endValue, float duration, bool snapping = false) { var tweener = DOTween.To(() => target.BlurShift, x => target.BlurShift = x, endValue, duration); tweener.SetOptions(snapping).SetTarget(target); return tweener; } /// /// Controls the amount of blur applied to the outline /// public static TweenerCore DOBlurShift(this Outliner target, float endValue, float duration, bool snapping = false) { var tweener = DOTween.To(() => target.BlurShift, x => target.BlurShift = x, endValue, duration); tweener.SetOptions(snapping).SetTarget(target); return tweener; } /// /// Controls the amount of dilation applied to the outline /// public static TweenerCore DODilateShift(this Outlinable.OutlineProperties target, float endValue, float duration, bool snapping = false) { var tweener = DOTween.To(() => target.DilateShift, x => target.DilateShift = x, endValue, duration); tweener.SetOptions(snapping).SetTarget(target); return tweener; } /// /// Controls the amount of dilation applied to the outline /// public static TweenerCore DODilateShift(this Outliner target, float endValue, float duration, bool snapping = false) { var tweener = DOTween.To(() => target.DilateShift, x => target.DilateShift = x, endValue, duration); tweener.SetOptions(snapping).SetTarget(target); return tweener; } } } #endif