1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 18:27:26 +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.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 =>
{
if (value)
{
Text = "Not Ready";
active.FadeIn(200);
}
else
{
Text = "Ready";
active.FadeOut(200);
}
};
}
}