mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 09:27:18 +09:00
inline single-use constants
This commit is contained in:
parent
3606febe31
commit
bdf680aecb
@ -30,9 +30,6 @@ namespace osu.Game.Rulesets.Mania.Mods
|
|||||||
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 @@ namespace osu.Game.Rulesets.Mania.Mods
|
|||||||
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…
x
Reference in New Issue
Block a user