mirror of
https://github.com/ppy/osu.git
synced 2024-11-16 07:57:25 +08:00
24 lines
671 B
C#
24 lines
671 B
C#
// 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.Framework.Graphics.UserInterface;
|
|
using osu.Framework.Allocation;
|
|
|
|
namespace osu.Game.Rulesets
|
|
{
|
|
public abstract class RulesetSelector : TabControl<RulesetInfo>
|
|
{
|
|
[Resolved]
|
|
protected RulesetStore Rulesets { get; private set; }
|
|
|
|
protected override Dropdown<RulesetInfo> CreateDropdown() => null;
|
|
|
|
[BackgroundDependencyLoader]
|
|
private void load()
|
|
{
|
|
foreach (var r in Rulesets.AvailableRulesets)
|
|
AddItem(r);
|
|
}
|
|
}
|
|
}
|