mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Added mod selection overlay
This commit is contained in:
52
osu.Game/Overlays/Mods/DifficultyReductionSection.cs
Normal file
52
osu.Game/Overlays/Mods/DifficultyReductionSection.cs
Normal file
@ -0,0 +1,52 @@
|
||||
// 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(),
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user