mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 00:53:56 +09:00
Use IsCurrentScreen instead of a bool for both checks now.
This commit is contained in:
@ -88,8 +88,6 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
private bool loadedSuccessfully => RulesetContainer?.Objects.Any() == true;
|
private bool loadedSuccessfully => RulesetContainer?.Objects.Any() == true;
|
||||||
|
|
||||||
private bool allowRestart = true;
|
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(AudioManager audio, OsuConfigManager config, APIAccess api)
|
private void load(AudioManager audio, OsuConfigManager config, APIAccess api)
|
||||||
{
|
{
|
||||||
@ -210,7 +208,7 @@ namespace osu.Game.Screens.Play
|
|||||||
new HotkeyRetryOverlay
|
new HotkeyRetryOverlay
|
||||||
{
|
{
|
||||||
Action = () => {
|
Action = () => {
|
||||||
if (allowRestart) {
|
if (IsCurrentScreen) {
|
||||||
//we want to hide the hitrenderer immediately (looks better).
|
//we want to hide the hitrenderer immediately (looks better).
|
||||||
//we may be able to remove this once the mouse cursor trail is improved.
|
//we may be able to remove this once the mouse cursor trail is improved.
|
||||||
RulesetContainer?.Hide();
|
RulesetContainer?.Hide();
|
||||||
@ -294,8 +292,6 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
if (IsCurrentScreen)
|
if (IsCurrentScreen)
|
||||||
{
|
{
|
||||||
allowRestart = false;
|
|
||||||
|
|
||||||
var score = new Score
|
var score = new Score
|
||||||
{
|
{
|
||||||
Beatmap = Beatmap.Value.BeatmapInfo,
|
Beatmap = Beatmap.Value.BeatmapInfo,
|
||||||
|
Reference in New Issue
Block a user