1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-26 16:13:22 +08:00
osu-lazer/osu.Game/Overlays/Settings/Sections/GameplaySection.cs

38 lines
1.2 KiB
C#
Raw Normal View History

// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
2017-02-07 12:52:19 +08:00
2017-07-12 02:25:24 +08:00
using osu.Framework.Allocation;
2017-02-07 12:52:19 +08:00
using osu.Framework.Graphics;
using osu.Game.Graphics;
using osu.Game.Overlays.Settings.Sections.Gameplay;
2017-07-12 02:25:24 +08:00
using osu.Game.Rulesets;
using System.Linq;
2017-02-07 12:52:19 +08:00
namespace osu.Game.Overlays.Settings.Sections
2017-02-07 12:52:19 +08:00
{
public class GameplaySection : SettingsSection
2017-02-07 12:52:19 +08:00
{
public override string Header => "Gameplay";
public override FontAwesome Icon => FontAwesome.fa_circle_o;
public GameplaySection()
{
2017-02-27 22:37:38 +08:00
Children = new Drawable[]
2017-02-07 12:52:19 +08:00
{
new GeneralSettings(),
new SongSelectSettings(),
2017-02-07 12:52:19 +08:00
};
}
2017-07-12 02:25:24 +08:00
[BackgroundDependencyLoader]
private void load(RulesetStore rulesets)
2017-07-12 02:25:24 +08:00
{
2017-10-16 16:02:31 +08:00
foreach(Ruleset ruleset in rulesets.AvailableRulesets.Select(info => info.CreateInstance()))
2017-07-12 02:25:24 +08:00
{
SettingsSubsection section = ruleset.CreateSettings();
if (section != null)
Add(section);
}
}
2017-02-07 12:52:19 +08:00
}
2016-11-03 12:26:49 +08:00
}