From c7f5b83e9e992c07d21527584eb0396543b9ed5f Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 3 Aug 2017 15:45:59 +0900 Subject: [PATCH] Derive from CompositeDrawable instead We need to expose EdgeEffect as it's used in places. --- .../Graphics/Containers/ConstrainedIconContainer.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/osu.Game/Graphics/Containers/ConstrainedIconContainer.cs b/osu.Game/Graphics/Containers/ConstrainedIconContainer.cs index 135786e1c5..546d3bb6e3 100644 --- a/osu.Game/Graphics/Containers/ConstrainedIconContainer.cs +++ b/osu.Game/Graphics/Containers/ConstrainedIconContainer.cs @@ -11,7 +11,7 @@ namespace osu.Game.Graphics.Containers /// /// Display an icon that is constrained to a physical region on screen. /// - public class ConstrainedIconContainer : Container + public class ConstrainedIconContainer : CompositeDrawable { public Drawable Icon { @@ -26,6 +26,17 @@ namespace osu.Game.Graphics.Containers } } + /// + /// Determines an edge effect of this . + /// Edge effects are e.g. glow or a shadow. + /// Only has an effect when is true. + /// + public new EdgeEffectParameters EdgeEffect + { + get { return base.EdgeEffect; } + set { base.EdgeEffect = value; } + } + protected override void Update() { base.Update();