mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 08:52:56 +08:00
Adjust SkinnableTestScene
to give more breathing room to RelativeSize
components
This commit is contained in:
parent
7266d8e10d
commit
1e5dd9165a
@ -91,7 +91,7 @@ namespace osu.Game.Tests.Visual
|
|||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
BorderColour = Color4.White,
|
BorderColour = Color4.White,
|
||||||
BorderThickness = 5,
|
BorderThickness = 3,
|
||||||
Masking = true,
|
Masking = true,
|
||||||
|
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
@ -142,8 +142,15 @@ namespace osu.Game.Tests.Visual
|
|||||||
c.AutoSizeAxes = Axes.None;
|
c.AutoSizeAxes = Axes.None;
|
||||||
c.Size = Vector2.Zero;
|
c.Size = Vector2.Zero;
|
||||||
|
|
||||||
c.RelativeSizeAxes = !autoSize ? Axes.Both : Axes.None;
|
if (autoSize)
|
||||||
c.AutoSizeAxes = autoSize ? Axes.Both : Axes.None;
|
c.AutoSizeAxes = Axes.Both;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
c.RelativeSizeAxes = Axes.Both;
|
||||||
|
c.Anchor = Anchor.Centre;
|
||||||
|
c.Origin = Anchor.Centre;
|
||||||
|
c.Size = new Vector2(0.97f);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
outlineBox.Alpha = autoSize ? 1 : 0;
|
outlineBox.Alpha = autoSize ? 1 : 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user