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, RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y, AutoSizeAxes = Axes.Y,
Colour = textFlow.Colour, Colour = Color4.White.Opacity(0.75f),
Text = text Text = text
}, loaded => }, loaded =>
{ {
@ -367,18 +367,6 @@ namespace osu.Game.Screens.Select
this.FadeIn(transition_duration); 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 private class DimmedLoadingAnimation : VisibilityContainer