mirror of
https://github.com/osukey/osukey.git
synced 2025-05-03 04:37:30 +09:00
53 lines
1.4 KiB
C#
53 lines
1.4 KiB
C#
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using osu.Framework.Allocation;
|
|
using osu.Game.Graphics;
|
|
using osu.Game.Modes;
|
|
using osu.Game.Overlays.Mods;
|
|
|
|
namespace osu.Game
|
|
{
|
|
public class DifficultyReductionSection : ModSection
|
|
{
|
|
public ModButton EasyButton => Buttons[0];
|
|
public ModButton NoFailButton => Buttons[1];
|
|
public ModButton HalfTimeButton => Buttons[2];
|
|
|
|
[BackgroundDependencyLoader]
|
|
private void load(OsuColour colours)
|
|
{
|
|
Colour = colours.Green;
|
|
}
|
|
|
|
public DifficultyReductionSection()
|
|
{
|
|
Header = @"Gameplay Difficulty Reduction";
|
|
Buttons = new ModButton[]
|
|
{
|
|
new ModButton
|
|
{
|
|
Mods = new Mod[]
|
|
{
|
|
new ModEasy(),
|
|
},
|
|
},
|
|
new ModButton
|
|
{
|
|
Mods = new Mod[]
|
|
{
|
|
new ModNoFail(),
|
|
},
|
|
},
|
|
new ModButton
|
|
{
|
|
Mods = new Mod[]
|
|
{
|
|
new ModHalfTime(),
|
|
},
|
|
},
|
|
};
|
|
}
|
|
}
|
|
}
|