Fade song select wedges in

This commit is contained in:
Drew DeVault 2016-10-31 16:16:11 -06:00
parent b292387c6a
commit e5f948dccc
1 changed files with 4 additions and 1 deletions

View File

@ -35,6 +35,7 @@ public class PlaySongSelect : OsuGameMode
private ScrollContainer scrollContainer;
private FlowContainer beatmapSetFlow;
private TrackManager trackManager;
private Container wedgeContainer;
/// <param name="database">Optionally provide a database to use instead of the OsuGame one.</param>
public PlaySongSelect(BeatmapDatabase database = null)
@ -45,7 +46,7 @@ public PlaySongSelect(BeatmapDatabase database = null)
const float bottomToolHeight = 50;
Children = new Drawable[]
{
new Container
wedgeContainer = new Container
{
RelativeSizeAxes = Axes.Both,
Size = Vector2.One,
@ -141,6 +142,8 @@ public override void Load(BaseGame game)
trackManager = game.Audio.Track;
Task.Factory.StartNew(addBeatmapSets);
wedgeContainer.FadeInFromZero(250);
}
protected override void OnEntering(GameMode last)