update to everything

This commit is contained in:
Jorolf
2017-04-10 16:42:23 +02:00
parent bcef1ce2b6
commit 24b4b3ad7d
7 changed files with 140 additions and 173 deletions

View File

@ -20,6 +20,9 @@ namespace osu.Game.Graphics.UserInterface
private const EasingTypes easing = EasingTypes.InOutCubic;
private float length;
/// <summary>
/// Length of the bar, ranges from 0 to 1
/// </summary>
public float Length
{
get
@ -41,12 +44,6 @@ namespace osu.Game.Graphics.UserInterface
}
set
{
if (background == null)
Add(background = new Box
{
RelativeSizeAxes = Axes.Both,
Depth = 1,
});
background.Colour = value;
}
}
@ -81,10 +78,15 @@ namespace osu.Game.Graphics.UserInterface
{
Children = new[]
{
background = new Box
{
RelativeSizeAxes = Axes.Both,
Colour = new Color4(0,0,0,0)
},
bar = new Box
{
RelativeSizeAxes = Axes.Both,
}
},
};
}