mirror of
https://github.com/ppy/osu.git
synced 2025-02-20 04:23:14 +08:00
Rename method to remove "InitialColour" namings
This commit is contained in:
parent
356c67f00d
commit
08078b9513
@ -58,14 +58,14 @@ namespace osu.Game.Rulesets.Mania.Skinning
|
||||
|
||||
InternalChildren = new Drawable[]
|
||||
{
|
||||
new Box { RelativeSizeAxes = Axes.Both }.WithInitialColour(backgroundColour),
|
||||
new Box { RelativeSizeAxes = Axes.Both }.WithLegacyColour(backgroundColour),
|
||||
new Container
|
||||
{
|
||||
RelativeSizeAxes = Axes.Y,
|
||||
Width = leftLineWidth,
|
||||
Scale = new Vector2(0.740f, 1),
|
||||
Alpha = hasLeftLine ? 1 : 0,
|
||||
Child = new Box { RelativeSizeAxes = Axes.Both }.WithInitialColour(lineColour)
|
||||
Child = new Box { RelativeSizeAxes = Axes.Both }.WithLegacyColour(lineColour)
|
||||
},
|
||||
new Container
|
||||
{
|
||||
@ -75,7 +75,7 @@ namespace osu.Game.Rulesets.Mania.Skinning
|
||||
Width = rightLineWidth,
|
||||
Scale = new Vector2(0.740f, 1),
|
||||
Alpha = hasRightLine ? 1 : 0,
|
||||
Child = new Box { RelativeSizeAxes = Axes.Both }.WithInitialColour(lineColour)
|
||||
Child = new Box { RelativeSizeAxes = Axes.Both }.WithLegacyColour(lineColour)
|
||||
},
|
||||
lightContainer = new Container
|
||||
{
|
||||
|
@ -39,7 +39,7 @@ namespace osu.Game.Rulesets.Osu.Skinning
|
||||
Texture = skin.GetTexture("sliderb-nd"),
|
||||
Colour = new Color4(5, 5, 5, 255),
|
||||
},
|
||||
animationContent.WithInitialColour(ballColour).With(d =>
|
||||
animationContent.WithLegacyColour(ballColour).With(d =>
|
||||
{
|
||||
d.Anchor = Anchor.Centre;
|
||||
d.Origin = Anchor.Centre;
|
||||
|
@ -82,10 +82,10 @@ namespace osu.Game.Skinning
|
||||
/// <remarks>
|
||||
/// Beware: Any existing value in <see cref="Drawable.Alpha"/> is overwritten.
|
||||
/// </remarks>
|
||||
/// <param name="drawable">The <see cref="Drawable"/> to set the "InitialColour" of.</param>
|
||||
/// <param name="drawable">The <see cref="Drawable"/> to set the colour of.</param>
|
||||
/// <param name="colour">The <see cref="Color4"/> to set.</param>
|
||||
/// <returns>The given <see cref="Drawable"/>.</returns>
|
||||
public static T WithInitialColour<T>(this T drawable, Color4 colour)
|
||||
public static T WithLegacyColour<T>(this T drawable, Color4 colour)
|
||||
where T : Drawable
|
||||
{
|
||||
drawable.Alpha = colour.A;
|
||||
|
Loading…
Reference in New Issue
Block a user