1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 20:47:28 +08:00

cursorExpand is now a bool

This commit is contained in:
Dragicafit 2018-12-07 23:52:57 +01:00
parent ec3c87dbea
commit 506f27a92e
3 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ namespace osu.Game.Rulesets.Osu.UI.Cursor
[BackgroundDependencyLoader]
private void load(ISkinSource source)
{
cursorExpand = source.GetValue<SkinConfiguration, string>(s => s.CursorExpand).Equals("1");
cursorExpand = source.GetValue<SkinConfiguration, bool>(s => s.CursorExpand) ?? true;
}
private int downCount;

View File

@ -31,7 +31,7 @@ namespace osu.Game.Skinning
skin.SkinInfo.Creator = pair.Value;
break;
case @"CursorExpand":
skin.CursorExpand = pair.Value;
skin.CursorExpand = !pair.Value.Equals("0");
break;
}

View File

@ -17,6 +17,6 @@ namespace osu.Game.Skinning
public string HitCircleFont { get; set; } = "default";
public string CursorExpand { get; set; } = "1";
public bool? CursorExpand { get; set; } = true;
}
}