1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-30 23:15:14 +08:00

Rename applyAnchor to applyCustomAnchor

This commit is contained in:
Robin Avery 2021-06-07 05:08:18 -04:00
parent 6c9594ee35
commit 65f594f860
No known key found for this signature in database
GPG Key ID: 0496DF10CEF7E226

View File

@ -193,7 +193,7 @@ namespace osu.Game.Skinning.Editor
yield return new OsuMenuItem("Anchor") yield return new OsuMenuItem("Anchor")
{ {
Items = createAnchorItems((i, a) => i.OverridesClosestAnchor && ((Drawable)i).Anchor == a, applyAnchor) Items = createAnchorItems((i, a) => i.OverridesClosestAnchor && ((Drawable)i).Anchor == a, applyCustomAnchor)
.Prepend(closestItem) .Prepend(closestItem)
.ToArray() .ToArray()
}; };
@ -255,7 +255,7 @@ namespace osu.Game.Skinning.Editor
private Quad getSelectionQuad() => private Quad getSelectionQuad() =>
GetSurroundingQuad(SelectedBlueprints.SelectMany(b => b.Item.ScreenSpaceDrawQuad.GetVertices().ToArray())); GetSurroundingQuad(SelectedBlueprints.SelectMany(b => b.Item.ScreenSpaceDrawQuad.GetVertices().ToArray()));
private void applyAnchor(Anchor anchor) private void applyCustomAnchor(Anchor anchor)
{ {
foreach (var item in SelectedItems) foreach (var item in SelectedItems)
{ {