CI fixes.

This commit is contained in:
DrabWeb
2017-09-07 15:38:23 -03:00
parent 109531b66c
commit 55e8bdfb05
3 changed files with 5 additions and 6 deletions

View File

@ -83,7 +83,7 @@ namespace osu.Game.Screens.Select
{ {
base.UpdateAfterChildren(); base.UpdateAfterChildren();
Details.Height = Math.Min(DrawHeight - (details_padding * 3) - BeatmapDetailAreaTabControl.HEIGHT, 450); Details.Height = Math.Min(DrawHeight - details_padding * 3 - BeatmapDetailAreaTabControl.HEIGHT, 450);
} }
} }
} }

View File

@ -306,7 +306,6 @@ namespace osu.Game.Screens.Select
private class MetadataSection : Container private class MetadataSection : Container
{ {
private readonly OsuSpriteText title;
private readonly TextFlowContainer textFlow; private readonly TextFlowContainer textFlow;
public string Text public string Text
@ -347,7 +346,7 @@ namespace osu.Game.Screens.Select
{ {
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y, AutoSizeAxes = Axes.Y,
Child = this.title = new OsuSpriteText Child = new OsuSpriteText
{ {
Text = title, Text = title,
Font = @"Exo2.0-Bold", Font = @"Exo2.0-Bold",

View File

@ -32,12 +32,12 @@ namespace osu.Game.Screens.Select.Details
if ((Beatmap?.Ruleset?.ID ?? 0) == 3) if ((Beatmap?.Ruleset?.ID ?? 0) == 3)
{ {
firstValue.Title = "Key Amount"; firstValue.Title = "Key Amount";
firstValue.Value = (int)Math.Round(Beatmap.Difficulty.CircleSize); firstValue.Value = (int)Math.Round(Beatmap?.Difficulty?.CircleSize ?? 0);
} }
else else
{ {
firstValue.Title = "Circle Size"; firstValue.Title = "Circle Size";
firstValue.Value = Beatmap.Difficulty.CircleSize; firstValue.Value = Beatmap?.Difficulty?.CircleSize ?? 0;
} }
hpDrain.Value = beatmap.Difficulty.DrainRate; hpDrain.Value = beatmap.Difficulty.DrainRate;
@ -118,7 +118,7 @@ namespace osu.Game.Screens.Select.Details
{ {
Width = name_width, Width = name_width,
AutoSizeAxes = Axes.Y, AutoSizeAxes = Axes.Y,
Child = this.name = new OsuSpriteText Child = name = new OsuSpriteText
{ {
TextSize = 13, TextSize = 13,
}, },