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

Make method static

This commit is contained in:
smoogipoo 2019-08-31 21:32:02 +09:00
parent 40729356fa
commit cbbc6aad6e
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ namespace osu.Game.Screens.Edit
/// <param name="beatDivisor">The beat divisor.</param>
/// <param name="colours">The set of colours.</param>
/// <returns>The applicable colour from <paramref name="colours"/> for <paramref name="beatDivisor"/>.</returns>
public ColourInfo GetColourFor(int beatDivisor, OsuColour colours)
public static ColourInfo GetColourFor(int beatDivisor, OsuColour colours)
{
switch (beatDivisor)
{

View File

@ -212,7 +212,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
Anchor = Anchor.TopLeft,
Origin = Anchor.TopCentre,
RelativePositionAxes = Axes.X,
Colour = beatDivisor.GetColourFor(t, colours),
Colour = BindableBeatDivisor.GetColourFor(t, colours),
X = getMappedPosition(t)
});
}