Move test values to constants

This commit is contained in:
Dean Herbert
2019-12-12 20:51:58 +09:00
parent 7559012fb7
commit 5e634c1183
2 changed files with 13 additions and 10 deletions

View File

@ -19,7 +19,7 @@ namespace osu.Game.Graphics.Containers
/// <summary>
/// Amount of lightening to apply to current dim level during break times.
/// </summary>
private const float break_lighten_amount = 0.3f;
public const float BREAK_LIGHTEN_AMOUNT = 0.3f;
protected const double BACKGROUND_FADE_DURATION = 800;
@ -52,7 +52,7 @@ namespace osu.Game.Graphics.Containers
protected Bindable<bool> ShowVideo { get; private set; }
private float breakLightening => LightenDuringBreaks.Value && IsBreakTime.Value ? break_lighten_amount : 0;
private float breakLightening => LightenDuringBreaks.Value && IsBreakTime.Value ? BREAK_LIGHTEN_AMOUNT : 0;
protected float DimLevel => Math.Max(EnableUserDim.Value ? (float)UserDimLevel.Value - breakLightening : 0, 0);
protected override Container<Drawable> Content => dimContent;