1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-07 17:24:10 +08:00

Cleanup (again)

This commit is contained in:
DrabWeb
2017-05-19 20:03:07 -03:00
Unverified
parent c981a4a511
commit 83c81c0626
5 changed files with 6 additions and 13 deletions
+1 -1
View File
@@ -148,7 +148,7 @@ namespace osu.Game.Overlays.Direct
TextSize = 14,
Shadow = false,
Colour = colours.Gray5,
Alpha = SetInfo.Metadata.Source == @"" ? 0 : 1,
Alpha = string.IsNullOrEmpty(SetInfo.Metadata.Source) ? 0f : 1f,
},
},
},
+2 -2
View File
@@ -136,7 +136,7 @@ namespace osu.Game.Overlays.Direct
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
TextSize = 14,
Alpha = SetInfo.Metadata.Source == @"" ? 0 : 1,
Alpha = string.IsNullOrEmpty(SetInfo.Metadata.Source) ? 0f : 1f,
},
},
},
@@ -190,7 +190,7 @@ namespace osu.Game.Overlays.Direct
protected override void OnHoverLost(InputState state)
{
icon.ScaleTo(1, 500, EasingTypes.OutElastic);
icon.ScaleTo(1f, 500, EasingTypes.OutElastic);
}
}
}
+1 -1
View File
@@ -58,7 +58,7 @@ namespace osu.Game.Overlays.Direct
Margin = new MarginPadding { Top = 8, Bottom = 8 },
Origin = Anchor.BottomLeft,
Anchor = Anchor.BottomLeft,
Text = (value as Enum)?.GetDescription() ?? value.ToString(),
Text = (value as Enum).GetDescription() ?? value.ToString(),
TextSize = 14,
Font = @"Exo2.0-Bold",
},
+2 -8
View File
@@ -52,7 +52,7 @@ namespace osu.Game.Overlays
ThirdWaveColour = OsuColour.FromHex(@"005774");
FourthWaveColour = OsuColour.FromHex(@"003a4e");
Header header = null;
Header header;
Children = new Drawable[]
{
new Box
@@ -119,13 +119,7 @@ namespace osu.Game.Overlays
private void recreatePanels(PanelDisplayStyle displayStyle)
{
var p = new List<DirectPanel>();
foreach (BeatmapSetInfo b in BeatmapSets)
p.Add(displayStyle == PanelDisplayStyle.Grid ? (DirectPanel)new DirectGridPanel(b) { Width = 400 } :
new DirectListPanel(b));
panels.Children = p;
panels.Children = BeatmapSets.Select(b => displayStyle == PanelDisplayStyle.Grid ? (DirectPanel)new DirectGridPanel(b) { Width = 400 } : new DirectListPanel(b));
}
protected override void PopIn()
-1
View File
@@ -460,7 +460,6 @@
<ItemGroup />
<ItemGroup />
<ItemGroup />
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.