1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-29 02:52:54 +08:00

Adjust design of ReadyButton.

This commit is contained in:
DrabWeb 2018-05-29 03:03:51 -03:00
parent 3915cb7f2f
commit 94b54a0520

View File

@ -180,13 +180,31 @@ namespace osu.Game.Screens.Multi.Screens.Match
Triangles.ColourDark = OsuColour.FromHex(@"1f6682"); Triangles.ColourDark = OsuColour.FromHex(@"1f6682");
Triangles.TriangleScale = 1.5f; Triangles.TriangleScale = 1.5f;
// todo: visually select Container active;
Add(active = new Container
{
RelativeSizeAxes = Axes.Both,
Alpha = 0f,
Child = new Box
{
RelativeSizeAxes = Axes.Both,
Alpha = 0.15f,
Blending = BlendingMode.Additive,
},
});
Ready.ValueChanged += value => Ready.ValueChanged += value =>
{ {
if (value) if (value)
{
Text = "Not Ready"; Text = "Not Ready";
active.FadeIn(200);
}
else else
{
Text = "Ready"; Text = "Ready";
active.FadeOut(200);
}
}; };
} }
} }