mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 18:23:04 +08:00
cursorExpand is now a bool
This commit is contained in:
parent
ec3c87dbea
commit
506f27a92e
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user