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:
parent
40729356fa
commit
cbbc6aad6e
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user