mirror of
https://github.com/ppy/osu
synced 2024-12-26 08:53:10 +00:00
SetPosition -> OffsetPosition
This commit is contained in:
parent
ad72d3816b
commit
376f6eec58
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -7,6 +7,6 @@ namespace osu.Game.Rulesets.Edit.Types
|
||||
{
|
||||
public interface IHasEditablePosition
|
||||
{
|
||||
void SetPosition(Vector2 offset);
|
||||
void OffsetPosition(Vector2 offset);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user