Cleanup (again)

This commit is contained in:
DrabWeb
2017-05-19 20:03:07 -03:00
parent c981a4a511
commit 83c81c0626
5 changed files with 6 additions and 13 deletions

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,
},
},
},

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);
}
}
}

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",
},