mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Fix naming and testcase
This commit is contained in:
@ -38,21 +38,21 @@ namespace osu.Desktop.VisualTests.Tests
|
|||||||
Add(pauseOverlay);
|
Add(pauseOverlay);
|
||||||
Add(failOverlay);
|
Add(failOverlay);
|
||||||
|
|
||||||
AddToggleStep(@"Pause", delegate {
|
AddStep(@"Pause", delegate {
|
||||||
if(failOverlay.State == Visibility.Visible)
|
if(failOverlay.State == Visibility.Visible)
|
||||||
{
|
{
|
||||||
failOverlay.Hide();
|
failOverlay.Hide();
|
||||||
}
|
}
|
||||||
pauseOverlay.Show();
|
pauseOverlay.Show();
|
||||||
});
|
});
|
||||||
AddToggleStep("Fail", delegate {
|
AddStep("Fail", delegate {
|
||||||
if (pauseOverlay.State == Visibility.Visible)
|
if (pauseOverlay.State == Visibility.Visible)
|
||||||
{
|
{
|
||||||
pauseOverlay.Hide();
|
pauseOverlay.Hide();
|
||||||
}
|
}
|
||||||
failOverlay.Show();
|
failOverlay.Show();
|
||||||
});
|
});
|
||||||
AddToggleStep("Add Retry", delegate
|
AddStep("Add Retry", delegate
|
||||||
{
|
{
|
||||||
retryCount++;
|
retryCount++;
|
||||||
pauseOverlay.Retries = retryCount;
|
pauseOverlay.Retries = retryCount;
|
||||||
|
@ -31,8 +31,8 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
public FailOverlay()
|
public FailOverlay()
|
||||||
{
|
{
|
||||||
title = @"failed";
|
Title = @"failed";
|
||||||
description = @"you're dead, try again?";
|
Description = @"you're dead, try again?";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,8 +27,8 @@ namespace osu.Game.Screens.Play
|
|||||||
public Action OnRetry;
|
public Action OnRetry;
|
||||||
public Action OnQuit;
|
public Action OnQuit;
|
||||||
|
|
||||||
protected string title;
|
protected string Title;
|
||||||
protected string description;
|
protected string Description;
|
||||||
|
|
||||||
private FillFlowContainer buttons;
|
private FillFlowContainer buttons;
|
||||||
|
|
||||||
@ -131,7 +131,7 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
new OsuSpriteText
|
new OsuSpriteText
|
||||||
{
|
{
|
||||||
Text = title,
|
Text = Title,
|
||||||
Font = @"Exo2.0-Medium",
|
Font = @"Exo2.0-Medium",
|
||||||
Spacing = new Vector2(5, 0),
|
Spacing = new Vector2(5, 0),
|
||||||
Origin = Anchor.TopCentre,
|
Origin = Anchor.TopCentre,
|
||||||
@ -143,7 +143,7 @@ namespace osu.Game.Screens.Play
|
|||||||
},
|
},
|
||||||
new OsuSpriteText
|
new OsuSpriteText
|
||||||
{
|
{
|
||||||
Text = description,
|
Text = Description,
|
||||||
Origin = Anchor.TopCentre,
|
Origin = Anchor.TopCentre,
|
||||||
Anchor = Anchor.TopCentre,
|
Anchor = Anchor.TopCentre,
|
||||||
Shadow = true,
|
Shadow = true,
|
||||||
|
@ -35,8 +35,8 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
public PauseOverlay()
|
public PauseOverlay()
|
||||||
{
|
{
|
||||||
title = @"paused";
|
Title = @"paused";
|
||||||
description = @"you're not going to do what i think you're going to do, are ya?";
|
Description = @"you're not going to do what i think you're going to do, are ya?";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user