mirror of
https://github.com/ppy/osu.git
synced 2025-02-21 18:42:56 +08:00
Remove no longer necessary custom dropdown
This commit is contained in:
parent
2190e6443a
commit
5f52701273
@ -81,7 +81,7 @@ namespace osu.Game.Tournament.Screens.Ladder.Components
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
private class SettingsRoundDropdown : LadderSettingsDropdown<TournamentRound>
|
private class SettingsRoundDropdown : SettingsDropdown<TournamentRound>
|
||||||
{
|
{
|
||||||
public SettingsRoundDropdown(BindableList<TournamentRound> rounds)
|
public SettingsRoundDropdown(BindableList<TournamentRound> rounds)
|
||||||
{
|
{
|
||||||
|
@ -1,26 +0,0 @@
|
|||||||
// 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.
|
|
||||||
|
|
||||||
using osu.Game.Graphics.UserInterface;
|
|
||||||
using osu.Game.Overlays.Settings;
|
|
||||||
|
|
||||||
namespace osu.Game.Tournament.Screens.Ladder.Components
|
|
||||||
{
|
|
||||||
public class LadderSettingsDropdown<T> : SettingsDropdown<T>
|
|
||||||
{
|
|
||||||
protected override OsuDropdown<T> CreateDropdown() => new DropdownControl();
|
|
||||||
|
|
||||||
private new class DropdownControl : SettingsDropdown<T>.DropdownControl
|
|
||||||
{
|
|
||||||
protected override DropdownMenu CreateMenu() => new Menu();
|
|
||||||
|
|
||||||
private new class Menu : OsuDropdownMenu
|
|
||||||
{
|
|
||||||
public Menu()
|
|
||||||
{
|
|
||||||
MaxHeight = 200;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -6,11 +6,12 @@ using System.Collections.Specialized;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Extensions.IEnumerableExtensions;
|
using osu.Framework.Extensions.IEnumerableExtensions;
|
||||||
|
using osu.Game.Overlays.Settings;
|
||||||
using osu.Game.Tournament.Models;
|
using osu.Game.Tournament.Models;
|
||||||
|
|
||||||
namespace osu.Game.Tournament.Screens.Ladder.Components
|
namespace osu.Game.Tournament.Screens.Ladder.Components
|
||||||
{
|
{
|
||||||
public class SettingsTeamDropdown : LadderSettingsDropdown<TournamentTeam>
|
public class SettingsTeamDropdown : SettingsDropdown<TournamentTeam>
|
||||||
{
|
{
|
||||||
public SettingsTeamDropdown(BindableList<TournamentTeam> teams)
|
public SettingsTeamDropdown(BindableList<TournamentTeam> teams)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user