mirror of
https://github.com/ppy/osu.git
synced 2025-03-03 22:43:04 +08:00
Derive from CompositeDrawable instead
We need to expose EdgeEffect as it's used in places.
This commit is contained in:
parent
0d9ea97828
commit
c7f5b83e9e
@ -11,7 +11,7 @@ namespace osu.Game.Graphics.Containers
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Display an icon that is constrained to a physical region on screen.
|
/// Display an icon that is constrained to a physical region on screen.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class ConstrainedIconContainer : Container
|
public class ConstrainedIconContainer : CompositeDrawable
|
||||||
{
|
{
|
||||||
public Drawable Icon
|
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()
|
protected override void Update()
|
||||||
{
|
{
|
||||||
base.Update();
|
base.Update();
|
||||||
|
Loading…
Reference in New Issue
Block a user