Rename HoldToQuit to QuitButton

This commit is contained in:
Roman Kapustin
2018-05-03 23:50:30 +03:00
parent f8630115d6
commit 39db1e8cbb
3 changed files with 12 additions and 12 deletions

View File

@ -34,7 +34,7 @@ namespace osu.Game.Screens.Play
public readonly HealthDisplay HealthDisplay;
public readonly SongProgress Progress;
public readonly ModDisplay ModDisplay;
public readonly HoldToQuit HoldToQuit;
public readonly QuitButton HoldToQuit;
public readonly PlayerSettingsOverlay PlayerSettingsOverlay;
private Bindable<bool> showHud;
@ -58,7 +58,7 @@ namespace osu.Game.Screens.Play
AccuracyCounter = CreateAccuracyCounter(),
HealthDisplay = CreateHealthDisplay(),
Progress = CreateProgress(),
HoldToQuit = CreateHoldToQuit(),
HoldToQuit = CreateQuitButton(),
ModDisplay = CreateModsContainer(),
PlayerSettingsOverlay = CreatePlayerSettingsOverlay()
}
@ -207,11 +207,11 @@ namespace osu.Game.Screens.Play
RelativeSizeAxes = Axes.X,
};
protected virtual HoldToQuit CreateHoldToQuit() => new HoldToQuit
protected virtual QuitButton CreateQuitButton() => new QuitButton
{
Anchor = Anchor.BottomRight,
Origin = Anchor.BottomRight,
Margin = new MarginPadding { Bottom = Progress.Size.Y * 1.25f, Right = 5 }
Position = new Vector2(-5, -70)
};
protected virtual ModDisplay CreateModsContainer() => new ModDisplay