mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 17:52:56 +08:00
More TestCaseManiaHitObjects fixes.
This commit is contained in:
parent
3b5e847a31
commit
8bb8999820
@ -43,7 +43,6 @@ namespace osu.Desktop.Tests.Visual
|
||||
{
|
||||
new DrawableNote(new Note(), ManiaAction.Key1)
|
||||
{
|
||||
RelativePositionAxes = Axes.Y,
|
||||
Y = 5000,
|
||||
LifetimeStart = double.MinValue,
|
||||
LifetimeEnd = double.MaxValue,
|
||||
@ -51,7 +50,6 @@ namespace osu.Desktop.Tests.Visual
|
||||
},
|
||||
new DrawableNote(new Note(), ManiaAction.Key1)
|
||||
{
|
||||
RelativePositionAxes = Axes.Y,
|
||||
Y = 6000,
|
||||
LifetimeStart = double.MinValue,
|
||||
LifetimeEnd = double.MaxValue,
|
||||
@ -79,9 +77,8 @@ namespace osu.Desktop.Tests.Visual
|
||||
{
|
||||
new DrawableHoldNote(new HoldNote(), ManiaAction.Key1)
|
||||
{
|
||||
RelativePositionAxes = Axes.Y,
|
||||
Y = 5000,
|
||||
Height = 3000,
|
||||
Height = 1000,
|
||||
LifetimeStart = double.MinValue,
|
||||
LifetimeEnd = double.MaxValue,
|
||||
AccentColour = Color4.Red
|
||||
|
@ -207,6 +207,10 @@ namespace osu.Game.Rulesets.Mania.Objects.Drawables
|
||||
RelativePositionAxes = Axes.None;
|
||||
Y = 0;
|
||||
|
||||
// Life time managed by the parent DrawableHoldNote
|
||||
LifetimeStart = double.MinValue;
|
||||
LifetimeEnd = double.MaxValue;
|
||||
|
||||
HasOwnGlow = false;
|
||||
}
|
||||
|
||||
@ -246,6 +250,10 @@ namespace osu.Game.Rulesets.Mania.Objects.Drawables
|
||||
RelativePositionAxes = Axes.None;
|
||||
Y = 0;
|
||||
|
||||
// Life time managed by the parent DrawableHoldNote
|
||||
LifetimeStart = double.MinValue;
|
||||
LifetimeEnd = double.MaxValue;
|
||||
|
||||
HasOwnGlow = false;
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
// 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.Graphics;
|
||||
using OpenTK.Graphics;
|
||||
using osu.Game.Rulesets.Mania.Judgements;
|
||||
using osu.Game.Rulesets.Objects.Drawables;
|
||||
@ -20,6 +21,7 @@ namespace osu.Game.Rulesets.Mania.Objects.Drawables
|
||||
protected DrawableManiaHitObject(TObject hitObject, ManiaAction? action = null)
|
||||
: base(hitObject)
|
||||
{
|
||||
RelativePositionAxes = Axes.Y;
|
||||
HitObject = hitObject;
|
||||
|
||||
if (action != null)
|
||||
|
Loading…
Reference in New Issue
Block a user