1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 18:23:04 +08:00

Use more standard parsing method

This commit is contained in:
Dean Herbert 2019-05-12 22:53:03 +09:00
parent ce0e4c506e
commit 41e13aef23

View File

@ -1,4 +1,4 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text. // See the LICENCE file in the repository root for full licence text.
using osu.Game.Beatmaps.Formats; using osu.Game.Beatmaps.Formats;
@ -37,8 +37,7 @@ namespace osu.Game.Skinning
skin.CursorExpand = pair.Value != "0"; skin.CursorExpand = pair.Value != "0";
break; break;
case @"SliderBorderSize": case @"SliderBorderSize":
if (Single.TryParse(pair.Value, NumberStyles.Number, CultureInfo.CreateSpecificCulture("en-US"), out float size)) skin.SliderBorderSize = Parsing.ParseFloat(pair.Value);
skin.SliderBorderSize = size;
break; break;
} }