mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 17:47:29 +08:00
Enable NRT on playlists settings overlay
This commit is contained in:
parent
c851e3d8f3
commit
7e9d11ee24
@ -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.Specialized;
|
using System.Collections.Specialized;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
@ -29,9 +27,9 @@ namespace osu.Game.Screens.OnlinePlay.Playlists
|
|||||||
{
|
{
|
||||||
public class PlaylistsRoomSettingsOverlay : RoomSettingsOverlay
|
public class PlaylistsRoomSettingsOverlay : RoomSettingsOverlay
|
||||||
{
|
{
|
||||||
public Action EditPlaylist;
|
public Action? EditPlaylist;
|
||||||
|
|
||||||
private MatchSettings settings;
|
private MatchSettings settings = null!;
|
||||||
|
|
||||||
protected override OsuButton SubmitButton => settings.ApplyButton;
|
protected override OsuButton SubmitButton => settings.ApplyButton;
|
||||||
|
|
||||||
@ -55,30 +53,30 @@ namespace osu.Game.Screens.OnlinePlay.Playlists
|
|||||||
{
|
{
|
||||||
private const float disabled_alpha = 0.2f;
|
private const float disabled_alpha = 0.2f;
|
||||||
|
|
||||||
public Action EditPlaylist;
|
public Action? EditPlaylist;
|
||||||
|
|
||||||
public OsuTextBox NameField, MaxParticipantsField, MaxAttemptsField;
|
public OsuTextBox NameField = null!, MaxParticipantsField = null!, MaxAttemptsField = null!;
|
||||||
public OsuDropdown<TimeSpan> DurationField;
|
public OsuDropdown<TimeSpan> DurationField = null!;
|
||||||
public RoomAvailabilityPicker AvailabilityPicker;
|
public RoomAvailabilityPicker AvailabilityPicker = null!;
|
||||||
public TriangleButton ApplyButton;
|
public TriangleButton ApplyButton = null!;
|
||||||
|
|
||||||
public bool IsLoading => loadingLayer.State.Value == Visibility.Visible;
|
public bool IsLoading => loadingLayer.State.Value == Visibility.Visible;
|
||||||
|
|
||||||
public OsuSpriteText ErrorText;
|
public OsuSpriteText ErrorText = null!;
|
||||||
|
|
||||||
private LoadingLayer loadingLayer;
|
private LoadingLayer loadingLayer = null!;
|
||||||
private DrawableRoomPlaylist playlist;
|
private DrawableRoomPlaylist playlist = null!;
|
||||||
private OsuSpriteText playlistLength;
|
private OsuSpriteText playlistLength = null!;
|
||||||
|
|
||||||
private PurpleTriangleButton editPlaylistButton;
|
private PurpleTriangleButton editPlaylistButton = null!;
|
||||||
|
|
||||||
[Resolved(CanBeNull = true)]
|
|
||||||
private IRoomManager manager { get; set; }
|
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private IAPIProvider api { get; set; }
|
private IRoomManager? manager { get; set; }
|
||||||
|
|
||||||
private IBindable<APIUser> localUser;
|
[Resolved]
|
||||||
|
private IAPIProvider api { get; set; } = null!;
|
||||||
|
|
||||||
|
private IBindable<APIUser> localUser = null!;
|
||||||
|
|
||||||
private readonly Room room;
|
private readonly Room room;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user