mirror of https://github.com/ppy/osu
inline single-use constants
This commit is contained in:
parent
3606febe31
commit
bdf680aecb
|
@ -30,9 +30,6 @@ public class ManiaModFadeIn : Mod, IApplicableToDrawableRuleset<ManiaHitObject>
|
||||||
public override bool Ranked => true;
|
public override bool Ranked => true;
|
||||||
public override Type[] IncompatibleMods => new[] { typeof(ModFlashlight<ManiaHitObject>) };
|
public override Type[] IncompatibleMods => new[] { typeof(ModFlashlight<ManiaHitObject>) };
|
||||||
|
|
||||||
private const float lanecover_size_filled = 0.5f;
|
|
||||||
private const float lanecover_size_gradient = 0.25f;
|
|
||||||
|
|
||||||
public void ApplyToDrawableRuleset(DrawableRuleset<ManiaHitObject> drawableRuleset)
|
public void ApplyToDrawableRuleset(DrawableRuleset<ManiaHitObject> drawableRuleset)
|
||||||
{
|
{
|
||||||
ManiaPlayfield maniaPlayfield = (ManiaPlayfield)drawableRuleset.Playfield;
|
ManiaPlayfield maniaPlayfield = (ManiaPlayfield)drawableRuleset.Playfield;
|
||||||
|
@ -42,8 +39,8 @@ public void ApplyToDrawableRuleset(DrawableRuleset<ManiaHitObject> drawableRules
|
||||||
column.HitObjectArea.ChildrenOfType<BufferedContainer>().First().Add(new LaneCover(false)
|
column.HitObjectArea.ChildrenOfType<BufferedContainer>().First().Add(new LaneCover(false)
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
SizeFilled = lanecover_size_filled,
|
SizeFilled = 0.5f,
|
||||||
SizeGradient = lanecover_size_gradient
|
SizeGradient = 0.25f
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue