1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-10 09:57:18 +08:00

40 lines
1.2 KiB
C#
Raw Normal View History

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