mirror of https://github.com/ppy/osu
Move BufferedContainer usage to allow ripple to blend correctly with the background layer.
This commit is contained in:
parent
511dab32ef
commit
2342a17dbc
|
@ -21,7 +21,7 @@ namespace osu.Game.Screens.Menu
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// osu! logo and its attachments (pulsing, visualiser etc.)
|
/// osu! logo and its attachments (pulsing, visualiser etc.)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public partial class OsuLogo : BufferedContainer
|
public partial class OsuLogo : Container
|
||||||
{
|
{
|
||||||
private Sprite logo;
|
private Sprite logo;
|
||||||
private CircularContainer logoContainer;
|
private CircularContainer logoContainer;
|
||||||
|
@ -82,39 +82,46 @@ public OsuLogo()
|
||||||
AutoSizeAxes = Axes.Both,
|
AutoSizeAxes = Axes.Both,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
logoContainer = new CircularContainer
|
new BufferedContainer
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
AutoSizeAxes = Axes.Both,
|
||||||
RelativeSizeAxes = Axes.Both,
|
|
||||||
Scale = new Vector2(0.8f),
|
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
colourAndTriangles = new Container
|
logoContainer = new CircularContainer
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
Scale = new Vector2(0.8f),
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new Box
|
colourAndTriangles = new Container
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Colour = new Color4(233, 103, 161, 255),
|
Anchor = Anchor.Centre,
|
||||||
|
Origin = Anchor.Centre,
|
||||||
|
Children = new Drawable[]
|
||||||
|
{
|
||||||
|
new Box
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
Colour = new Color4(233, 103, 161, 255),
|
||||||
|
},
|
||||||
|
new OsuLogoTriangles
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
},
|
||||||
|
}
|
||||||
},
|
},
|
||||||
new OsuLogoTriangles
|
|
||||||
{
|
|
||||||
RelativeSizeAxes = Axes.Both,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
logo = new Sprite
|
logo = new Sprite
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Scale = new Vector2(0.5f),
|
Scale = new Vector2(0.5f),
|
||||||
|
},
|
||||||
|
}
|
||||||
},
|
},
|
||||||
rippleContainer = new Container
|
rippleContainer = new Container
|
||||||
{
|
{
|
||||||
|
@ -128,7 +135,7 @@ public OsuLogo()
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
BlendingMode = BlendingMode.Additive,
|
BlendingMode = BlendingMode.Additive,
|
||||||
Scale = new Vector2(0.5f),
|
Scale = new Vector2(0.5f),
|
||||||
Alpha = 0.05f
|
Alpha = 0.15f
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue