mirror of
https://github.com/ppy/osu.git
synced 2024-11-07 23:47:32 +08:00
Merge remote-tracking branch 'origin/update-framework' into letterboxing
# Conflicts: # osu.Game/Overlays/Settings/Sections/Graphics/LayoutSettings.cs
This commit is contained in:
commit
70d644406f
@ -55,7 +55,7 @@ namespace osu.Game.Tests.Visual
|
|||||||
linkColour = colours.Blue;
|
linkColour = colours.Blue;
|
||||||
|
|
||||||
var chatManager = new ChannelManager();
|
var chatManager = new ChannelManager();
|
||||||
BindableCollection<Channel> availableChannels = (BindableCollection<Channel>)chatManager.AvailableChannels;
|
BindableList<Channel> availableChannels = (BindableList<Channel>)chatManager.AvailableChannels;
|
||||||
availableChannels.Add(new Channel { Name = "#english"});
|
availableChannels.Add(new Channel { Name = "#english"});
|
||||||
availableChannels.Add(new Channel { Name = "#japanese" });
|
availableChannels.Add(new Channel { Name = "#japanese" });
|
||||||
Dependencies.Cache(chatManager);
|
Dependencies.Cache(chatManager);
|
||||||
|
@ -73,8 +73,8 @@ namespace osu.Game.Tests.Visual
|
|||||||
{
|
{
|
||||||
public event Action RoomsUpdated;
|
public event Action RoomsUpdated;
|
||||||
|
|
||||||
public readonly BindableCollection<Room> Rooms = new BindableCollection<Room>();
|
public readonly BindableList<Room> Rooms = new BindableList<Room>();
|
||||||
IBindableCollection<Room> IRoomManager.Rooms => Rooms;
|
IBindableList<Room> IRoomManager.Rooms => Rooms;
|
||||||
|
|
||||||
public void CreateRoom(Room room, Action<Room> onSuccess = null, Action<string> onError = null) => Rooms.Add(room);
|
public void CreateRoom(Room room, Action<Room> onSuccess = null, Action<string> onError = null) => Rooms.Add(room);
|
||||||
|
|
||||||
|
@ -138,7 +138,7 @@ namespace osu.Game.Tests.Visual
|
|||||||
|
|
||||||
public event Action RoomsUpdated;
|
public event Action RoomsUpdated;
|
||||||
|
|
||||||
public IBindableCollection<Room> Rooms { get; } = null;
|
public IBindableList<Room> Rooms { get; } = null;
|
||||||
|
|
||||||
public void CreateRoom(Room room, Action<Room> onSuccess = null, Action<string> onError = null)
|
public void CreateRoom(Room room, Action<Room> onSuccess = null, Action<string> onError = null)
|
||||||
{
|
{
|
||||||
|
@ -151,7 +151,7 @@ namespace osu.Game.Beatmaps
|
|||||||
|
|
||||||
public bool WaveformLoaded => waveform.IsResultAvailable;
|
public bool WaveformLoaded => waveform.IsResultAvailable;
|
||||||
public Waveform Waveform => waveform.Value;
|
public Waveform Waveform => waveform.Value;
|
||||||
protected virtual Waveform GetWaveform() => new Waveform();
|
protected virtual Waveform GetWaveform() => new Waveform(null);
|
||||||
private readonly RecyclableLazy<Waveform> waveform;
|
private readonly RecyclableLazy<Waveform> waveform;
|
||||||
|
|
||||||
public bool StoryboardLoaded => storyboard.IsResultAvailable;
|
public bool StoryboardLoaded => storyboard.IsResultAvailable;
|
||||||
|
@ -29,8 +29,8 @@ namespace osu.Game.Online.Chat
|
|||||||
@"#lobby"
|
@"#lobby"
|
||||||
};
|
};
|
||||||
|
|
||||||
private readonly BindableCollection<Channel> availableChannels = new BindableCollection<Channel>();
|
private readonly BindableList<Channel> availableChannels = new BindableList<Channel>();
|
||||||
private readonly BindableCollection<Channel> joinedChannels = new BindableCollection<Channel>();
|
private readonly BindableList<Channel> joinedChannels = new BindableList<Channel>();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The currently opened channel
|
/// The currently opened channel
|
||||||
@ -40,12 +40,12 @@ namespace osu.Game.Online.Chat
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The Channels the player has joined
|
/// The Channels the player has joined
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public IBindableCollection<Channel> JoinedChannels => joinedChannels;
|
public IBindableList<Channel> JoinedChannels => joinedChannels;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The channels available for the player to join
|
/// The channels available for the player to join
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public IBindableCollection<Channel> AvailableChannels => availableChannels;
|
public IBindableList<Channel> AvailableChannels => availableChannels;
|
||||||
|
|
||||||
private IAPIProvider api;
|
private IAPIProvider api;
|
||||||
|
|
||||||
|
@ -37,10 +37,10 @@ namespace osu.Game.Online.Multiplayer
|
|||||||
public RulesetInfo Ruleset { get; set; }
|
public RulesetInfo Ruleset { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public readonly BindableCollection<Mod> AllowedMods = new BindableCollection<Mod>();
|
public readonly BindableList<Mod> AllowedMods = new BindableList<Mod>();
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public readonly BindableCollection<Mod> RequiredMods = new BindableCollection<Mod>();
|
public readonly BindableList<Mod> RequiredMods = new BindableList<Mod>();
|
||||||
|
|
||||||
[JsonProperty("beatmap")]
|
[JsonProperty("beatmap")]
|
||||||
private APIBeatmap apiBeatmap { get; set; }
|
private APIBeatmap apiBeatmap { get; set; }
|
||||||
|
@ -24,7 +24,7 @@ namespace osu.Game.Online.Multiplayer
|
|||||||
public Bindable<User> Host { get; private set; } = new Bindable<User>();
|
public Bindable<User> Host { get; private set; } = new Bindable<User>();
|
||||||
|
|
||||||
[JsonProperty("playlist")]
|
[JsonProperty("playlist")]
|
||||||
public BindableCollection<PlaylistItem> Playlist { get; set; } = new BindableCollection<PlaylistItem>();
|
public BindableList<PlaylistItem> Playlist { get; set; } = new BindableList<PlaylistItem>();
|
||||||
|
|
||||||
[JsonProperty("channel_id")]
|
[JsonProperty("channel_id")]
|
||||||
public Bindable<int> ChannelId { get; private set; } = new Bindable<int>();
|
public Bindable<int> ChannelId { get; private set; } = new Bindable<int>();
|
||||||
|
@ -18,7 +18,7 @@ namespace osu.Game.Screens.Multi
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// All the active <see cref="Room"/>s.
|
/// All the active <see cref="Room"/>s.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
IBindableCollection<Room> Rooms { get; }
|
IBindableList<Room> Rooms { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates a new <see cref="Room"/>.
|
/// Creates a new <see cref="Room"/>.
|
||||||
|
@ -22,7 +22,7 @@ namespace osu.Game.Screens.Multi.Lounge.Components
|
|||||||
private readonly Bindable<Room> selectedRoom = new Bindable<Room>();
|
private readonly Bindable<Room> selectedRoom = new Bindable<Room>();
|
||||||
public IBindable<Room> SelectedRoom => selectedRoom;
|
public IBindable<Room> SelectedRoom => selectedRoom;
|
||||||
|
|
||||||
private readonly IBindableCollection<Room> rooms = new BindableCollection<Room>();
|
private readonly IBindableList<Room> rooms = new BindableList<Room>();
|
||||||
|
|
||||||
private readonly FillFlowContainer<DrawableRoom> roomFlow;
|
private readonly FillFlowContainer<DrawableRoom> roomFlow;
|
||||||
public IReadOnlyList<DrawableRoom> Rooms => roomFlow;
|
public IReadOnlyList<DrawableRoom> Rooms => roomFlow;
|
||||||
|
@ -86,7 +86,7 @@ namespace osu.Game.Screens.Multi
|
|||||||
public readonly Bindable<User> Host = new Bindable<User>();
|
public readonly Bindable<User> Host = new Bindable<User>();
|
||||||
public readonly Bindable<RoomStatus> Status = new Bindable<RoomStatus>();
|
public readonly Bindable<RoomStatus> Status = new Bindable<RoomStatus>();
|
||||||
public readonly Bindable<GameType> Type = new Bindable<GameType>();
|
public readonly Bindable<GameType> Type = new Bindable<GameType>();
|
||||||
public readonly BindableCollection<PlaylistItem> Playlist = new BindableCollection<PlaylistItem>();
|
public readonly BindableList<PlaylistItem> Playlist = new BindableList<PlaylistItem>();
|
||||||
public readonly Bindable<IEnumerable<User>> Participants = new Bindable<IEnumerable<User>>();
|
public readonly Bindable<IEnumerable<User>> Participants = new Bindable<IEnumerable<User>>();
|
||||||
public readonly Bindable<int> ParticipantCount = new Bindable<int>();
|
public readonly Bindable<int> ParticipantCount = new Bindable<int>();
|
||||||
public readonly Bindable<int?> MaxParticipants = new Bindable<int?>();
|
public readonly Bindable<int?> MaxParticipants = new Bindable<int?>();
|
||||||
|
@ -21,8 +21,8 @@ namespace osu.Game.Screens.Multi
|
|||||||
{
|
{
|
||||||
public event Action RoomsUpdated;
|
public event Action RoomsUpdated;
|
||||||
|
|
||||||
private readonly BindableCollection<Room> rooms = new BindableCollection<Room>();
|
private readonly BindableList<Room> rooms = new BindableList<Room>();
|
||||||
public IBindableCollection<Room> Rooms => rooms;
|
public IBindableList<Room> Rooms => rooms;
|
||||||
|
|
||||||
private Room currentRoom;
|
private Room currentRoom;
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.1.4" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.1.4" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="2.2.0" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="2.2.0" />
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" />
|
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" />
|
||||||
<PackageReference Include="ppy.osu.Framework" Version="2018.1226.0" />
|
<PackageReference Include="ppy.osu.Framework" Version="2019.107.0" />
|
||||||
<PackageReference Include="SharpCompress" Version="0.22.0" />
|
<PackageReference Include="SharpCompress" Version="0.22.0" />
|
||||||
<PackageReference Include="NUnit" Version="3.11.0" />
|
<PackageReference Include="NUnit" Version="3.11.0" />
|
||||||
<PackageReference Include="SharpRaven" Version="2.4.0" />
|
<PackageReference Include="SharpRaven" Version="2.4.0" />
|
||||||
|
Loading…
Reference in New Issue
Block a user