mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
Rename applyCustomAnchors
to applyFixedAnchors
for consistency with UsesFixedAnchor
This commit is contained in:
@ -186,7 +186,7 @@ namespace osu.Game.Skinning.Editor
|
|||||||
|
|
||||||
yield return new OsuMenuItem("Anchor")
|
yield return new OsuMenuItem("Anchor")
|
||||||
{
|
{
|
||||||
Items = createAnchorItems((i, a) => i.UsesFixedAnchor && ((Drawable)i).Anchor == a, applyCustomAnchors)
|
Items = createAnchorItems((i, a) => i.UsesFixedAnchor && ((Drawable)i).Anchor == a, applyFixedAnchors)
|
||||||
.Prepend(closestItem)
|
.Prepend(closestItem)
|
||||||
.ToArray()
|
.ToArray()
|
||||||
};
|
};
|
||||||
@ -248,7 +248,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 applyCustomAnchors(Anchor anchor)
|
private void applyFixedAnchors(Anchor anchor)
|
||||||
{
|
{
|
||||||
foreach (var item in SelectedItems)
|
foreach (var item in SelectedItems)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user