Fix incorrect default state. Handle input better.

This commit is contained in:
Dean Herbert
2017-04-14 14:40:52 +09:00
parent 09195a03a2
commit 8c41707ac7
4 changed files with 43 additions and 414 deletions

View File

@ -14,18 +14,20 @@ namespace osu.Game.Screens.Play
{
public Color4 FillColour
{
get { return FillContainer.Colour; }
set { FillContainer.Colour = value; }
get { return Fill.Colour; }
set { Fill.Colour = value; }
}
public SongProgressBar(float barHeight, float handleBarHeight, Vector2 handleSize)
{
Height = barHeight + handleBarHeight + handleSize.Y;
FillContainer.RelativeSizeAxes = Axes.X;
FillContainer.Height = barHeight;
Fill.RelativeSizeAxes = Axes.X;
Fill.Height = barHeight;
Add(new Box
{
Name = "Background",
Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft,
RelativeSizeAxes = Axes.X,
@ -34,7 +36,8 @@ namespace osu.Game.Screens.Play
Alpha = 0.5f,
Depth = 1
});
FillContainer.Add(new Container
Fill.Add(new Container
{
Origin = Anchor.BottomRight,
Anchor = Anchor.BottomRight,