mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 03:25:11 +08:00
Use a relative width definition
This commit is contained in:
parent
63ca8a428d
commit
149eaa64de
@ -113,13 +113,16 @@ namespace osu.Desktop.VisualTests.Tests
|
|||||||
public TestDrawableHitObject(HitObject hitObject)
|
public TestDrawableHitObject(HitObject hitObject)
|
||||||
: base(hitObject)
|
: base(hitObject)
|
||||||
{
|
{
|
||||||
AutoSizeAxes = Axes.Both;
|
AutoSizeAxes = Axes.Y;
|
||||||
|
RelativeSizeAxes = Axes.X;
|
||||||
RelativePositionAxes = Axes.Y;
|
RelativePositionAxes = Axes.Y;
|
||||||
|
|
||||||
Y = (float)hitObject.StartTime;
|
Y = (float)hitObject.StartTime;
|
||||||
|
|
||||||
Add(new Box
|
Add(new Box
|
||||||
{
|
{
|
||||||
Size = new Vector2(100, 10)
|
RelativeSizeAxes = Axes.X,
|
||||||
|
Height = 10,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user