Add basic Catcher

This commit is contained in:
Dean Herbert
2017-08-02 20:28:24 +09:00
parent 554d0d6fb8
commit 81b738f68c
3 changed files with 91 additions and 1 deletions

View File

@ -18,7 +18,23 @@ namespace osu.Game.Rulesets.Catch.UI
Anchor = Anchor.BottomCentre;
Origin = Anchor.BottomCentre;
Add(new Box { RelativeSizeAxes = Axes.Both, Alpha = 0.5f });
Children = new Drawable[]
{
new Box
{
RelativeSizeAxes = Axes.Both,
Alpha = 0.5f
},
new Catcher
{
RelativePositionAxes = Axes.Both,
RelativeSizeAxes = Axes.Both,
Scale = new Vector2(0.2f),
FillMode = FillMode.Fit,
Origin = Anchor.TopCentre,
Position = new Vector2(0.5f, 0.9f),
}
};
}
}
}