1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 15:03:13 +08:00

Rename parameters of getTieredComponent

This commit is contained in:
Robin Avery 2021-06-11 06:53:04 -04:00
parent a76eaeb52d
commit 6e181a6b63
No known key found for this signature in database
GPG Key ID: 0496DF10CEF7E226

View File

@ -287,15 +287,15 @@ namespace osu.Game.Skinning.Editor
var result = default(Anchor); var result = default(Anchor);
static Anchor getTieredComponent(float component, Anchor tier0, Anchor tier1, Anchor tier2) static Anchor getTieredComponent(float component, Anchor anchor0, Anchor anchor1, Anchor anchor2)
{ {
if (component >= 2 / 3f) if (component >= 2 / 3f)
return tier2; return anchor2;
if (component >= 1 / 3f) if (component >= 1 / 3f)
return tier1; return anchor1;
return tier0; return anchor0;
} }
result |= getTieredComponent(absolutePosition.X / factor.X, Anchor.x0, Anchor.x1, Anchor.x2); result |= getTieredComponent(absolutePosition.X / factor.X, Anchor.x0, Anchor.x1, Anchor.x2);