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