Apply some fixes for my own comments

This commit is contained in:
Dean Herbert
2017-06-23 14:02:19 +09:00
parent 076d561615
commit 5dc0b87ef5
2 changed files with 16 additions and 4 deletions

View File

@ -58,9 +58,12 @@ namespace osu.Game.Graphics.UserInterface
Add(maskingContainer = new Container<Path> Add(maskingContainer = new Container<Path>
{ {
Masking = true, Masking = true,
RelativeSizeAxes = Axes.Both RelativeSizeAxes = Axes.Both,
Children = new[]
{
path = new Path { RelativeSizeAxes = Axes.Both, PathWidth = 1 }
}
}); });
maskingContainer.Add(path = new Path { RelativeSizeAxes = Axes.Both, PathWidth = 1 });
} }
public override bool Invalidate(Invalidation invalidation = Invalidation.All, Drawable source = null, bool shallPropagate = true) public override bool Invalidate(Invalidation invalidation = Invalidation.All, Drawable source = null, bool shallPropagate = true)
@ -72,9 +75,9 @@ namespace osu.Game.Graphics.UserInterface
private void applyPath() private void applyPath()
{ {
path.ClearVertices();
if (values == null) return; if (values == null) return;
path.ClearVertices();
int count = Math.Max(values.Length, DefaultValueCount); int count = Math.Max(values.Length, DefaultValueCount);
float max = values.Max(), min = values.Min(); float max = values.Max(), min = values.Min();

View File

@ -45,7 +45,16 @@ namespace osu.Game.Overlays.Profile
Margin = new MarginPadding Margin = new MarginPadding
{ {
Horizontal = UserProfileOverlay.CONTENT_X_MARGIN, Horizontal = UserProfileOverlay.CONTENT_X_MARGIN,
Bottom = 20 Bottom = 200
},
Children = new Drawable[]
{
new TextFlowContainer
{
AutoSizeAxes = Axes.Y,
RelativeSizeAxes = Axes.X,
Text = "Coming soon!"
}
} }
}, },
new Box new Box