1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 13:37:25 +08:00

SetPosition -> OffsetPosition

This commit is contained in:
smoogipoo 2018-03-10 00:02:13 +09:00
parent ad72d3816b
commit 376f6eec58
4 changed files with 4 additions and 4 deletions

View File

@ -67,6 +67,6 @@ namespace osu.Game.Rulesets.Osu.Objects
Scale = (1.0f - 0.7f * (difficulty.CircleSize - 5) / 5) / 2;
}
public virtual void SetPosition(Vector2 offset) => Position += offset;
public virtual void OffsetPosition(Vector2 offset) => Position += offset;
}
}

View File

@ -14,6 +14,6 @@ namespace osu.Game.Rulesets.Osu.Objects
this.slider = slider;
}
public override void SetPosition(Vector2 offset) => slider.SetPosition(offset);
public override void OffsetPosition(Vector2 offset) => slider.OffsetPosition(offset);
}
}

View File

@ -57,7 +57,7 @@ namespace osu.Game.Rulesets.Edit.Layers.Selection
switch (hitObject)
{
case IHasEditablePosition editablePosition:
editablePosition.SetPosition(offset);
editablePosition.OffsetPosition(state.Mouse.Delta);
break;
}
}

View File

@ -7,6 +7,6 @@ namespace osu.Game.Rulesets.Edit.Types
{
public interface IHasEditablePosition
{
void SetPosition(Vector2 offset);
void OffsetPosition(Vector2 offset);
}
}