1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 09:32:55 +08:00

conform to coding styles

This commit is contained in:
mcendu 2019-12-10 20:40:10 +08:00
parent 1afeaf31bc
commit dbe46c6cf7
No known key found for this signature in database
GPG Key ID: FBCD5D45163D6364
2 changed files with 5 additions and 5 deletions

View File

@ -26,7 +26,7 @@ namespace osu.Game.Rulesets.Osu.Skinning
{
spin = skin.GetConfig<OsuSkinConfiguration, bool>(OsuSkinConfiguration.CursorRotate)?.Value ?? true;
InternalChildren = new Drawable[]
InternalChildren = new[]
{
new NonPlayfieldSprite
{

View File

@ -22,7 +22,7 @@ namespace osu.Game.Rulesets.Osu.UI.Cursor
private SkinnableDrawable cursorSprite;
private Drawable ExpandTarget => (cursorSprite.Drawable as OsuCursorSprite)?.ExpandTarget ?? cursorSprite;
private Drawable expandTarget => (cursorSprite.Drawable as OsuCursorSprite)?.ExpandTarget ?? cursorSprite;
public OsuCursor()
{
@ -59,10 +59,10 @@ namespace osu.Game.Rulesets.Osu.UI.Cursor
{
if (!cursorExpand) return;
ExpandTarget.ScaleTo(released_scale).ScaleTo(pressed_scale, 100, Easing.OutQuad);
expandTarget.ScaleTo(released_scale).ScaleTo(pressed_scale, 100, Easing.OutQuad);
}
public void Contract() => ExpandTarget.ScaleTo(released_scale, 100, Easing.OutQuad);
public void Contract() => expandTarget.ScaleTo(released_scale, 100, Easing.OutQuad);
private class DefaultCursor : OsuCursorSprite
{
@ -73,7 +73,7 @@ namespace osu.Game.Rulesets.Osu.UI.Cursor
Anchor = Anchor.Centre;
Origin = Anchor.Centre;
InternalChildren = new Drawable[]
InternalChildren = new[]
{
ExpandTarget = new CircularContainer
{