mirror of
https://github.com/ppy/osu
synced 2024-12-11 17:42:28 +00:00
Remove masking from Triangles to simplify OsuLogo masking hierarchy.
This commit is contained in:
parent
4b74ea7586
commit
511dab32ef
@ -19,7 +19,6 @@ namespace osu.Game.Graphics.Backgrounds
|
||||
|
||||
public Triangles()
|
||||
{
|
||||
Masking = true;
|
||||
Alpha = 0.3f;
|
||||
}
|
||||
|
||||
|
@ -156,6 +156,7 @@ namespace osu.Game.Overlays.Toolbar
|
||||
public OpaqueBackground()
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both;
|
||||
Masking = true;
|
||||
|
||||
Children = new Drawable[]
|
||||
{
|
||||
|
@ -29,7 +29,7 @@ namespace osu.Game.Screens.Menu
|
||||
private Container logoHoverContainer;
|
||||
private MenuVisualisation vis;
|
||||
|
||||
private CircularContainer colourAndTriangles;
|
||||
private Container colourAndTriangles;
|
||||
|
||||
public Action Action;
|
||||
|
||||
@ -84,14 +84,14 @@ namespace osu.Game.Screens.Menu
|
||||
{
|
||||
logoContainer = new CircularContainer
|
||||
{
|
||||
AutoSizeAxes = Axes.Both,
|
||||
Anchor = Anchor.Centre,
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Scale = new Vector2(0.8f),
|
||||
Children = new Drawable[]
|
||||
{
|
||||
colourAndTriangles = new CircularContainer
|
||||
colourAndTriangles = new Container
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Scale = new Vector2(0.78f),
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
Children = new Drawable[]
|
||||
@ -107,14 +107,15 @@ namespace osu.Game.Screens.Menu
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
},
|
||||
},
|
||||
logo = new Sprite
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
Scale = new Vector2(0.5f),
|
||||
},
|
||||
},
|
||||
},
|
||||
rippleContainer = new Container
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
@ -205,19 +206,6 @@ namespace osu.Game.Screens.Menu
|
||||
Alpha = 1;
|
||||
}
|
||||
|
||||
public override float CornerRadius
|
||||
{
|
||||
get
|
||||
{
|
||||
return DrawSize.X / 2f;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
Debug.Assert(false, "Cannot manually set CornerRadius of CircularContainer.");
|
||||
}
|
||||
}
|
||||
|
||||
protected override Sprite CreateTriangle()
|
||||
{
|
||||
var triangle = base.CreateTriangle();
|
||||
|
Loading…
Reference in New Issue
Block a user