Code styling

This commit is contained in:
Gyoshi 2023-05-23 18:44:20 +02:00
parent 7b1e8ede54
commit c5ef3ae181

View File

@ -425,7 +425,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
foreach (Tick child in InternalChildren.OfType<Tick>()) foreach (Tick child in InternalChildren.OfType<Tick>())
{ {
float newAlpha = child.Solid ? 1f : divisor.NewValue % child.Divisor == 0 ? 0.2f : 0f; float newAlpha = child.IsSolid ? 1f : divisor.NewValue % child.Divisor == 0 ? 0.2f : 0f;
child.FadeTo(newAlpha); child.FadeTo(newAlpha);
} }
} }
@ -497,11 +497,11 @@ namespace osu.Game.Screens.Edit.Compose.Components
private partial class Tick : Circle private partial class Tick : Circle
{ {
public bool Solid; public bool IsSolid;
public int Divisor; public int Divisor;
public Tick(bool solid, int divisor) public Tick(bool isSolid, int divisor)
{ {
Solid = solid; IsSolid = isSolid;
Divisor = divisor; Divisor = divisor;
Size = new Vector2(6f, 12) * BindableBeatDivisor.GetSize(divisor); Size = new Vector2(6f, 12) * BindableBeatDivisor.GetSize(divisor);
InternalChild = new Box { RelativeSizeAxes = Axes.Both }; InternalChild = new Box { RelativeSizeAxes = Axes.Both };