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

Rename overly long method

This commit is contained in:
Robin Avery 2021-06-06 13:28:17 -04:00
parent 888882ac63
commit 6a456e53f4
No known key found for this signature in database
GPG Key ID: 0496DF10CEF7E226

View File

@ -331,7 +331,7 @@ namespace osu.Game.Skinning.Editor
{ {
var drawable = (Drawable)item; var drawable = (Drawable)item;
var anchor = getAnchorFromHashAndDrawableAndRecordWhetherUsingClosestAnchor(hash, drawable); var anchor = mapHashToAnchorSettings(hash, drawable);
updateDrawableAnchor(drawable, anchor); updateDrawableAnchor(drawable, anchor);
} }
@ -344,7 +344,7 @@ namespace osu.Game.Skinning.Editor
drawable.Position -= drawable.AnchorPosition - previousAnchor; drawable.Position -= drawable.AnchorPosition - previousAnchor;
} }
private Anchor getAnchorFromHashAndDrawableAndRecordWhetherUsingClosestAnchor(int hash, Drawable drawable) private Anchor mapHashToAnchorSettings(int hash, Drawable drawable)
{ {
var isUsingClosestAnchor = drawable.UsingClosestAnchor(); var isUsingClosestAnchor = drawable.UsingClosestAnchor();