diff --git a/LemonUI/Elements/ScaledAnim.cs b/LemonUI/Elements/ScaledAnim.cs index 3a4a120..41b3f76 100644 --- a/LemonUI/Elements/ScaledAnim.cs +++ b/LemonUI/Elements/ScaledAnim.cs @@ -107,6 +107,22 @@ public int Duration #region Constructors + /// + /// Creates a new dictionary based animation. + /// + /// The texture dictionary (YTD) to use. + public ScaledAnim(string dict) : this(dict, PointF.Empty, SizeF.Empty) + { + } + /// + /// Creates a new dictionary based animation. + /// + /// The texture dictionary (YTD) to use. + /// The size of the animation. + public ScaledAnim(string dict, SizeF size) : this(dict, PointF.Empty, size) + { + texture.Dictionary = dict ?? throw new ArgumentNullException(nameof(dict)); + } /// /// Creates a new dictionary based animation. ///