mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 12:57:39 +09:00
style: nullable pass on KeyCounterDisplay
This commit is contained in:
parent
076eb81b21
commit
b0a2e69f95
@ -24,12 +24,11 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
public DefaultKeyCounterDisplay()
|
public DefaultKeyCounterDisplay()
|
||||||
{
|
{
|
||||||
InternalChild = KeyFlow = new FillFlowContainer<KeyCounter>
|
KeyFlow.Direction = FillDirection.Horizontal;
|
||||||
{
|
KeyFlow.AutoSizeAxes = Axes.Both;
|
||||||
Direction = FillDirection.Horizontal,
|
KeyFlow.Alpha = 0;
|
||||||
AutoSizeAxes = Axes.Both,
|
|
||||||
Alpha = 0,
|
InternalChild = KeyFlow;
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Update()
|
protected override void Update()
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// 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.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
#nullable disable
|
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
@ -19,7 +17,7 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
protected readonly Bindable<bool> ConfigVisibility = new Bindable<bool>();
|
protected readonly Bindable<bool> ConfigVisibility = new Bindable<bool>();
|
||||||
|
|
||||||
protected FillFlowContainer<KeyCounter> KeyFlow;
|
protected FillFlowContainer<KeyCounter> KeyFlow = new FillFlowContainer<KeyCounter>();
|
||||||
|
|
||||||
protected override Container<KeyCounter> Content => KeyFlow;
|
protected override Container<KeyCounter> Content => KeyFlow;
|
||||||
|
|
||||||
@ -71,7 +69,7 @@ namespace osu.Game.Screens.Play
|
|||||||
public override bool HandleNonPositionalInput => receptor == null;
|
public override bool HandleNonPositionalInput => receptor == null;
|
||||||
public override bool HandlePositionalInput => receptor == null;
|
public override bool HandlePositionalInput => receptor == null;
|
||||||
|
|
||||||
private Receptor receptor;
|
private Receptor? receptor;
|
||||||
|
|
||||||
public void SetReceptor(Receptor receptor)
|
public void SetReceptor(Receptor receptor)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user