1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 21:02:54 +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] [BackgroundDependencyLoader]
private void load(ISkinSource source) 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; private int downCount;

View File

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

View File

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