A bit of renaming.

This commit is contained in:
Dean Herbert 2017-04-18 18:29:24 +09:00
parent 66865c50ad
commit 417a5ca713
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49
1 changed files with 6 additions and 6 deletions

View File

@ -18,7 +18,7 @@ namespace osu.Game.Screens.Play
{
public class SongProgress : OverlayContainer
{
private const int progress_height = 5;
private const int bottom_bar_height = 5;
protected override bool HideOnEscape => false;
@ -71,8 +71,8 @@ private void load(OsuColour colours)
public SongProgress()
{
Height = progress_height + SongProgressGraph.Column.HEIGHT + handle_size.Y;
Y = progress_height;
Height = bottom_bar_height + SongProgressGraph.Column.HEIGHT + handle_size.Y;
Y = bottom_bar_height;
Children = new Drawable[]
{
@ -82,9 +82,9 @@ public SongProgress()
Origin = Anchor.BottomLeft,
Anchor = Anchor.BottomLeft,
Height = SongProgressGraph.Column.HEIGHT,
Margin = new MarginPadding { Bottom = progress_height },
Margin = new MarginPadding { Bottom = bottom_bar_height },
},
bar = new SongProgressBar(progress_height, SongProgressGraph.Column.HEIGHT, handle_size)
bar = new SongProgressBar(bottom_bar_height, SongProgressGraph.Column.HEIGHT, handle_size)
{
Alpha = 0,
Anchor = Anchor.BottomLeft,
@ -113,7 +113,7 @@ public void ToggleBar()
private void updateBarVisibility()
{
bar.FadeTo(barVisible ? 1 : 0, transition_duration, EasingTypes.In);
MoveTo(new Vector2(0, barVisible ? 0 : progress_height), transition_duration, EasingTypes.In);
MoveTo(new Vector2(0, barVisible ? 0 : bottom_bar_height), transition_duration, EasingTypes.In);
}
protected override void PopIn()