2022-01-29 20:38:12 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
2022-07-13 14:35:53 +08:00
|
|
|
using System;
|
|
|
|
using System.Linq;
|
2022-01-29 21:49:40 +08:00
|
|
|
using osu.Framework.Graphics.Sprites;
|
2022-08-11 04:09:11 +08:00
|
|
|
using osu.Framework.Localisation;
|
2022-01-29 20:38:12 +08:00
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Osu.Mods
|
|
|
|
{
|
2022-07-13 06:07:10 +08:00
|
|
|
public class OsuModAlternate : InputBlockingMod
|
2022-01-29 20:38:12 +08:00
|
|
|
{
|
2022-01-29 21:49:40 +08:00
|
|
|
public override string Name => @"Alternate";
|
|
|
|
public override string Acronym => @"AL";
|
2022-08-11 04:09:11 +08:00
|
|
|
public override LocalisableString Description => @"Don't use the same key twice in a row!";
|
2022-01-29 21:49:40 +08:00
|
|
|
public override IconUsage? Icon => FontAwesome.Solid.Keyboard;
|
2022-07-13 14:35:53 +08:00
|
|
|
public override Type[] IncompatibleMods => base.IncompatibleMods.Concat(new[] { typeof(OsuModSingleTap) }).ToArray();
|
2022-01-29 21:49:40 +08:00
|
|
|
|
2022-07-14 00:40:44 +08:00
|
|
|
protected override bool CheckValidNewAction(OsuAction action) => LastAcceptedAction != action;
|
2022-01-29 20:38:12 +08:00
|
|
|
}
|
|
|
|
}
|