mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09:00
Make method static
This commit is contained in:
@ -45,7 +45,7 @@ namespace osu.Game.Screens.Edit
|
|||||||
/// <param name="beatDivisor">The beat divisor.</param>
|
/// <param name="beatDivisor">The beat divisor.</param>
|
||||||
/// <param name="colours">The set of colours.</param>
|
/// <param name="colours">The set of colours.</param>
|
||||||
/// <returns>The applicable colour from <paramref name="colours"/> for <paramref name="beatDivisor"/>.</returns>
|
/// <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)
|
switch (beatDivisor)
|
||||||
{
|
{
|
||||||
|
@ -212,7 +212,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
Anchor = Anchor.TopLeft,
|
Anchor = Anchor.TopLeft,
|
||||||
Origin = Anchor.TopCentre,
|
Origin = Anchor.TopCentre,
|
||||||
RelativePositionAxes = Axes.X,
|
RelativePositionAxes = Axes.X,
|
||||||
Colour = beatDivisor.GetColourFor(t, colours),
|
Colour = BindableBeatDivisor.GetColourFor(t, colours),
|
||||||
X = getMappedPosition(t)
|
X = getMappedPosition(t)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user