1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 20:22:55 +08:00

Set 'Colour' when creating 'textFlow'

This commit is contained in:
Joehu 2018-06-03 17:41:34 -07:00
parent 7101533926
commit bd7c9cd8bf

View File

@ -356,7 +356,7 @@ namespace osu.Game.Screens.Select
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Colour = textFlow.Colour,
Colour = Color4.White.Opacity(0.75f),
Text = text
}, loaded =>
{
@ -367,18 +367,6 @@ namespace osu.Game.Screens.Select
this.FadeIn(transition_duration);
});
}
public Color4 TextColour
{
get { return textFlow.Colour; }
set { textFlow.Colour = value; }
}
[BackgroundDependencyLoader]
private void load()
{
textFlow.Colour = Color4.White.Opacity(0.75f);
}
}
private class DimmedLoadingAnimation : VisibilityContainer