mirror of
https://github.com/osukey/osukey.git
synced 2025-05-06 06:07:26 +09:00
Reset win screen video on display; add fade in transition
This commit is contained in:
parent
4d74493289
commit
a85cef2f06
@ -60,6 +60,8 @@ namespace osu.Game.Tournament.Components
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Reset() => manualClock.CurrentTime = 0;
|
||||||
|
|
||||||
protected override void Update()
|
protected override void Update()
|
||||||
{
|
{
|
||||||
base.Update();
|
base.Update();
|
||||||
|
@ -62,7 +62,9 @@ namespace osu.Game.Tournament.Screens.TeamWin
|
|||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void update()
|
private bool firstDisplay = true;
|
||||||
|
|
||||||
|
private void update() => Schedule(() =>
|
||||||
{
|
{
|
||||||
var match = currentMatch.Value;
|
var match = currentMatch.Value;
|
||||||
|
|
||||||
@ -75,6 +77,15 @@ namespace osu.Game.Tournament.Screens.TeamWin
|
|||||||
redWinVideo.Alpha = match.WinnerColour == TeamColour.Red ? 1 : 0;
|
redWinVideo.Alpha = match.WinnerColour == TeamColour.Red ? 1 : 0;
|
||||||
blueWinVideo.Alpha = match.WinnerColour == TeamColour.Blue ? 1 : 0;
|
blueWinVideo.Alpha = match.WinnerColour == TeamColour.Blue ? 1 : 0;
|
||||||
|
|
||||||
|
if (firstDisplay)
|
||||||
|
{
|
||||||
|
if (match.WinnerColour == TeamColour.Red)
|
||||||
|
redWinVideo.Reset();
|
||||||
|
else
|
||||||
|
blueWinVideo.Reset();
|
||||||
|
firstDisplay = false;
|
||||||
|
}
|
||||||
|
|
||||||
mainContainer.Children = new Drawable[]
|
mainContainer.Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new DrawableTeamFlag(match.Winner)
|
new DrawableTeamFlag(match.Winner)
|
||||||
@ -108,6 +119,8 @@ namespace osu.Game.Tournament.Screens.TeamWin
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
mainContainer.FadeOut();
|
||||||
|
mainContainer.Delay(2000).FadeIn(1600, Easing.OutQuint);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user