1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-06 19:47:19 +08:00

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1.4 KiB
C#
Raw Normal View History

// 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-06-17 16:37:17 +09:00
#nullable disable
2020-12-14 23:11:51 +01:00
using JetBrains.Annotations;
2019-09-02 13:30:08 +09:00
using osu.Framework.Graphics;
2021-09-16 18:26:12 +09:00
using osu.Framework.Input.Events;
2020-12-07 12:30:25 +09:00
using osu.Game.Rulesets.Taiko.Skinning.Default;
using osu.Game.Skinning;
namespace osu.Game.Rulesets.Taiko.Objects.Drawables
{
2018-11-29 22:05:13 +07:00
public partial class DrawableSwellTick : DrawableTaikoHitObject<SwellTick>
{
public override bool DisplayResult => false;
2018-08-03 16:49:24 +09:00
2020-12-14 23:11:51 +01:00
public DrawableSwellTick()
: this(null)
{
}
public DrawableSwellTick([CanBeNull] SwellTick hitObject)
: base(hitObject)
{
}
2019-09-02 13:30:08 +09:00
protected override void UpdateInitialTransforms() => this.FadeOut();
2020-09-29 15:13:11 +09:00
public void TriggerResult(bool hit)
{
HitObject.StartTime = Time.Current;
if (hit)
ApplyMaxResult();
else
ApplyMinResult();
}
protected override void CheckForResult(bool userTriggered, double timeOffset)
{
}
2021-09-16 18:26:12 +09:00
public override bool OnPressed(KeyBindingPressEvent<TaikoAction> e) => false;
protected override SkinnableDrawable CreateMainPiece() => new SkinnableDrawable(new TaikoSkinComponentLookup(TaikoSkinComponents.DrumRollTick),
_ => new TickPiece());
}
}