1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 17:07:38 +08:00

Apply nullability

This commit is contained in:
Dean Herbert 2022-07-28 12:12:46 +09:00
parent f097064eea
commit f01c397220

View File

@ -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.Collections.Generic; using System.Collections.Generic;
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Framework.Graphics; using osu.Framework.Graphics;
@ -23,19 +21,19 @@ namespace osu.Game.Graphics.UserInterface
{ {
public class ExternalLinkButton : CompositeDrawable, IHasTooltip, IHasContextMenu public class ExternalLinkButton : CompositeDrawable, IHasTooltip, IHasContextMenu
{ {
public string Link { get; set; } public string? Link { get; set; }
private Color4 hoverColour; private Color4 hoverColour;
[Resolved] [Resolved]
private GameHost host { get; set; } private GameHost host { get; set; } = null!;
[Resolved(canBeNull: true)] [Resolved]
private OnScreenDisplay onScreenDisplay { get; set; } private OnScreenDisplay? onScreenDisplay { get; set; }
private readonly SpriteIcon linkIcon; private readonly SpriteIcon linkIcon;
public ExternalLinkButton(string link = null) public ExternalLinkButton(string? link = null)
{ {
Link = link; Link = link;
Size = new Vector2(12); Size = new Vector2(12);