diff --git a/osu.Framework.Font/Graphics/Sprites/KaraokeSpriteText.cs b/osu.Framework.Font/Graphics/Sprites/KaraokeSpriteText.cs index 7fa33a6..e76ff1f 100644 --- a/osu.Framework.Font/Graphics/Sprites/KaraokeSpriteText.cs +++ b/osu.Framework.Font/Graphics/Sprites/KaraokeSpriteText.cs @@ -22,10 +22,10 @@ public class KaraokeSpriteText : KaraokeSpriteText { internal const double INTERPOLATION_TIMING = 1; - private readonly MaskingContainer leftLyricTextContainer; + private readonly Container leftLyricTextContainer; private readonly T leftLyricText; - private readonly MaskingContainer rightLyricTextContainer; + private readonly Container rightLyricTextContainer; private readonly T rightLyricText; // todo: should have a better way to let user able to customize formats? @@ -39,22 +39,22 @@ public KaraokeSpriteText() AutoSizeAxes = Axes.Both; InternalChildren = new Drawable[] { - rightLyricTextContainer = new MaskingContainer + rightLyricTextContainer = new Container { AutoSizeAxes = Axes.Y, Anchor = Anchor.CentreRight, Origin = Anchor.CentreRight, - MaskingEdges = Edges.Left, + Masking = true, Child = rightLyricText = new T { Anchor = Anchor.CentreRight, Origin = Anchor.CentreRight, } }, - leftLyricTextContainer = new MaskingContainer + leftLyricTextContainer = new Container { AutoSizeAxes = Axes.Y, - MaskingEdges = Edges.Right, + Masking = true, Child = leftLyricText = new T(), } };