mirror of
https://github.com/ppy/osu
synced 2025-02-09 06:36:56 +00:00
Remove nullable disables
This commit is contained in:
parent
052a786eff
commit
724fd19038
@ -1,7 +1,6 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
#nullable disable
|
||||
using NUnit.Framework;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Game.Screens.Select;
|
||||
|
@ -1,7 +1,6 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
#nullable disable
|
||||
using System;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Bindables;
|
||||
@ -21,8 +20,8 @@ namespace osu.Game.Screens.Select
|
||||
{
|
||||
internal class DifficultyRangeFilterControl : CompositeDrawable
|
||||
{
|
||||
private Bindable<double> lowerStars;
|
||||
private Bindable<double> upperStars;
|
||||
private Bindable<double> lowerStars = null!;
|
||||
private Bindable<double> upperStars = null!;
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuConfigManager config)
|
||||
@ -97,8 +96,6 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
private class StarsSlider : OsuSliderBar<double>
|
||||
{
|
||||
private OsuSpriteText currentDisplay;
|
||||
|
||||
public override LocalisableString TooltipText => Current.IsDefault
|
||||
? UserInterfaceStrings.NoLimit
|
||||
: Current.Value.ToString(@"0.## stars");
|
||||
@ -115,6 +112,8 @@ namespace osu.Game.Screens.Select
|
||||
Nub.Width = Nub.HEIGHT;
|
||||
RangePadding = Nub.Width / 2;
|
||||
|
||||
OsuSpriteText currentDisplay;
|
||||
|
||||
Nub.Add(currentDisplay = new OsuSpriteText
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
|
Loading…
Reference in New Issue
Block a user