Remove unnecessary fill flow

This commit is contained in:
Dean Herbert
2019-06-27 12:34:22 +09:00
parent be901294f7
commit a5ccfeb18e

View File

@ -34,21 +34,12 @@ namespace osu.Game.Overlays.BeatmapSet
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Colour = Color4.Black.Opacity(0.6f), Colour = Color4.Black.Opacity(0.6f),
}, },
new FillFlowContainer
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Direction = FillDirection.Vertical,
Padding = new MarginPadding(10),
Children = new Drawable[]
{
textContainer = new LinkFlowContainer(t => t.Font = OsuFont.GetFont(size: 14)) textContainer = new LinkFlowContainer(t => t.Font = OsuFont.GetFont(size: 14))
{ {
Direction = FillDirection.Full, Direction = FillDirection.Full,
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y, AutoSizeAxes = Axes.Y,
}, Padding = new MarginPadding(10),
},
}, },
}; };
} }
@ -56,6 +47,7 @@ namespace osu.Game.Overlays.BeatmapSet
public BeatmapSetInfo BeatmapSet public BeatmapSetInfo BeatmapSet
{ {
get => beatmapSet; get => beatmapSet;
set set
{ {
if (value == beatmapSet) if (value == beatmapSet)
@ -76,7 +68,6 @@ namespace osu.Game.Overlays.BeatmapSet
private void updateText() private void updateText()
{ {
textContainer.Clear(); textContainer.Clear();
textContainer.AddParagraph(downloadDisabled textContainer.AddParagraph(downloadDisabled
? "This beatmap is currently not available for download." ? "This beatmap is currently not available for download."
: "Portions of this beatmap have been removed at the request of the creator or a third-party rights holder.", t => t.Colour = Color4.Orange); : "Portions of this beatmap have been removed at the request of the creator or a third-party rights holder.", t => t.Colour = Color4.Orange);