1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-03 23:23:25 +08:00

Derive from CompositeDrawable instead

We need to expose EdgeEffect as it's used in places.
This commit is contained in:
Dean Herbert 2017-08-03 15:45:59 +09:00
parent 0d9ea97828
commit c7f5b83e9e

View File

@ -11,7 +11,7 @@ namespace osu.Game.Graphics.Containers
/// <summary>
/// Display an icon that is constrained to a physical region on screen.
/// </summary>
public class ConstrainedIconContainer : Container
public class ConstrainedIconContainer : CompositeDrawable
{
public Drawable Icon
{
@ -26,6 +26,17 @@ namespace osu.Game.Graphics.Containers
}
}
/// <summary>
/// Determines an edge effect of this <see cref="Container"/>.
/// Edge effects are e.g. glow or a shadow.
/// Only has an effect when <see cref="CompositeDrawable.Masking"/> is true.
/// </summary>
public new EdgeEffectParameters EdgeEffect
{
get { return base.EdgeEffect; }
set { base.EdgeEffect = value; }
}
protected override void Update()
{
base.Update();