1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:17:23 +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.
// See the LICENCE file in the repository root for full licence text.
#nullable disable
using System.Collections.Generic;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
@ -23,19 +21,19 @@ namespace osu.Game.Graphics.UserInterface
{
public class ExternalLinkButton : CompositeDrawable, IHasTooltip, IHasContextMenu
{
public string Link { get; set; }
public string? Link { get; set; }
private Color4 hoverColour;
[Resolved]
private GameHost host { get; set; }
private GameHost host { get; set; } = null!;
[Resolved(canBeNull: true)]
private OnScreenDisplay onScreenDisplay { get; set; }
[Resolved]
private OnScreenDisplay? onScreenDisplay { get; set; }
private readonly SpriteIcon linkIcon;
public ExternalLinkButton(string link = null)
public ExternalLinkButton(string? link = null)
{
Link = link;
Size = new Vector2(12);