mirror of
https://github.com/osukey/osukey.git
synced 2025-04-29 10:47:22 +09:00
Remove nullable disable on user panel
This commit is contained in:
parent
b9dfb8b602
commit
1a571e1c7f
@ -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.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
@ -15,7 +13,6 @@ using osu.Framework.Graphics.UserInterface;
|
|||||||
using osu.Game.Graphics.UserInterface;
|
using osu.Game.Graphics.UserInterface;
|
||||||
using osu.Framework.Graphics.Cursor;
|
using osu.Framework.Graphics.Cursor;
|
||||||
using osu.Game.Graphics.Containers;
|
using osu.Game.Graphics.Containers;
|
||||||
using JetBrains.Annotations;
|
|
||||||
using osu.Game.Online.API;
|
using osu.Game.Online.API;
|
||||||
using osu.Game.Online.API.Requests.Responses;
|
using osu.Game.Online.API.Requests.Responses;
|
||||||
using osu.Game.Online.Chat;
|
using osu.Game.Online.Chat;
|
||||||
@ -32,11 +29,11 @@ namespace osu.Game.Users
|
|||||||
/// Perform an action in addition to showing the user's profile.
|
/// Perform an action in addition to showing the user's profile.
|
||||||
/// This should be used to perform auxiliary tasks and not as a primary action for clicking a user panel (to maintain a consistent UX).
|
/// This should be used to perform auxiliary tasks and not as a primary action for clicking a user panel (to maintain a consistent UX).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public new Action Action;
|
public new Action? Action;
|
||||||
|
|
||||||
protected Action ViewProfile { get; private set; }
|
protected Action ViewProfile { get; private set; } = null!;
|
||||||
|
|
||||||
protected Drawable Background { get; private set; }
|
protected Drawable Background { get; private set; } = null!;
|
||||||
|
|
||||||
protected UserPanel(APIUser user)
|
protected UserPanel(APIUser user)
|
||||||
: base(HoverSampleSet.Button)
|
: base(HoverSampleSet.Button)
|
||||||
@ -46,23 +43,23 @@ namespace osu.Game.Users
|
|||||||
User = user;
|
User = user;
|
||||||
}
|
}
|
||||||
|
|
||||||
[Resolved(canBeNull: true)]
|
[Resolved]
|
||||||
private UserProfileOverlay profileOverlay { get; set; }
|
private UserProfileOverlay? profileOverlay { get; set; }
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private IAPIProvider api { get; set; }
|
private IAPIProvider api { get; set; } = null!;
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private ChannelManager channelManager { get; set; }
|
private ChannelManager? channelManager { get; set; }
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private ChatOverlay chatOverlay { get; set; }
|
private ChatOverlay? chatOverlay { get; set; }
|
||||||
|
|
||||||
[Resolved(canBeNull: true)]
|
|
||||||
protected OverlayColourProvider ColourProvider { get; private set; }
|
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
protected OsuColour Colours { get; private set; }
|
protected OverlayColourProvider? ColourProvider { get; private set; }
|
||||||
|
|
||||||
|
[Resolved]
|
||||||
|
protected OsuColour Colours { get; private set; } = null!;
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load()
|
||||||
@ -93,7 +90,6 @@ namespace osu.Game.Users
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
[NotNull]
|
|
||||||
protected abstract Drawable CreateLayout();
|
protected abstract Drawable CreateLayout();
|
||||||
|
|
||||||
protected OsuSpriteText CreateUsername() => new OsuSpriteText
|
protected OsuSpriteText CreateUsername() => new OsuSpriteText
|
||||||
|
Loading…
x
Reference in New Issue
Block a user