mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Added mod selection overlay
This commit is contained in:
68
osu.Game/Overlays/Mods/AssistedSection.cs
Normal file
68
osu.Game/Overlays/Mods/AssistedSection.cs
Normal file
@ -0,0 +1,68 @@
|
||||
// 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 AssistedSection : ModSection
|
||||
{
|
||||
public ModButton RelaxButton => Buttons[0];
|
||||
public ModButton AutopilotButton => Buttons[1];
|
||||
public ModButton TargetPracticeButton => Buttons[2];
|
||||
public ModButton SpunOutButton => Buttons[3];
|
||||
public ModButton AutoplayCinemaButton => Buttons[4];
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour colours)
|
||||
{
|
||||
Colour = colours.Blue;
|
||||
}
|
||||
|
||||
public AssistedSection()
|
||||
{
|
||||
Header = @"Assisted";
|
||||
Buttons = new ModButton[]
|
||||
{
|
||||
new ModButton
|
||||
{
|
||||
Mods = new Mod[]
|
||||
{
|
||||
new ModRelax(),
|
||||
},
|
||||
},
|
||||
new ModButton
|
||||
{
|
||||
Mods = new Mod[]
|
||||
{
|
||||
new ModRelax2(),
|
||||
},
|
||||
},
|
||||
new ModButton
|
||||
{
|
||||
Mods = new Mod[]
|
||||
{
|
||||
new ModTarget(),
|
||||
},
|
||||
},
|
||||
new ModButton
|
||||
{
|
||||
Mods = new Mod[]
|
||||
{
|
||||
new ModSpunOut(),
|
||||
},
|
||||
},
|
||||
new ModButton
|
||||
{
|
||||
Mods = new Mod[]
|
||||
{
|
||||
new ModAutoplay(),
|
||||
new ModCinema(),
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user