mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 08:22:56 +08: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;
|
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;
|
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)
|
switch (hitObject)
|
||||||
{
|
{
|
||||||
case IHasEditablePosition editablePosition:
|
case IHasEditablePosition editablePosition:
|
||||||
editablePosition.SetPosition(offset);
|
editablePosition.OffsetPosition(state.Mouse.Delta);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,6 @@ namespace osu.Game.Rulesets.Edit.Types
|
|||||||
{
|
{
|
||||||
public interface IHasEditablePosition
|
public interface IHasEditablePosition
|
||||||
{
|
{
|
||||||
void SetPosition(Vector2 offset);
|
void OffsetPosition(Vector2 offset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user