mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 00:42:55 +08:00
g -> gravity + one more xmldoc.
This commit is contained in:
parent
1017cf54d9
commit
1932b58663
@ -63,7 +63,7 @@ namespace osu.Desktop.VisualTests.Tests
|
||||
});
|
||||
};
|
||||
|
||||
Action<bool> createPlayfieldWithNotes = g =>
|
||||
Action<bool> createPlayfieldWithNotes = gravity =>
|
||||
{
|
||||
Clear();
|
||||
|
||||
@ -78,12 +78,12 @@ namespace osu.Desktop.VisualTests.Tests
|
||||
Clock = new FramedClock(rateAdjustClock)
|
||||
});
|
||||
|
||||
if (!g)
|
||||
if (!gravity)
|
||||
playField.Columns.ForEach(c => c.Add(createTimingChange(0, false)));
|
||||
|
||||
for (double t = start_time; t <= start_time + duration; t += 100)
|
||||
{
|
||||
if (g)
|
||||
if (gravity)
|
||||
playField.Columns.ElementAt(0).Add(createTimingChange(t, true));
|
||||
|
||||
playField.Add(new DrawableNote(new Note
|
||||
@ -92,7 +92,7 @@ namespace osu.Desktop.VisualTests.Tests
|
||||
Column = 0
|
||||
}, new Bindable<Key>(Key.D)));
|
||||
|
||||
if (g)
|
||||
if (gravity)
|
||||
playField.Columns.ElementAt(3).Add(createTimingChange(t, true));
|
||||
|
||||
playField.Add(new DrawableNote(new Note
|
||||
@ -102,7 +102,7 @@ namespace osu.Desktop.VisualTests.Tests
|
||||
}, new Bindable<Key>(Key.K)));
|
||||
}
|
||||
|
||||
if (g)
|
||||
if (gravity)
|
||||
playField.Columns.ElementAt(1).Add(createTimingChange(start_time, true));
|
||||
|
||||
playField.Add(new DrawableHoldNote(new HoldNote
|
||||
@ -112,7 +112,7 @@ namespace osu.Desktop.VisualTests.Tests
|
||||
Column = 1
|
||||
}, new Bindable<Key>(Key.F)));
|
||||
|
||||
if (g)
|
||||
if (gravity)
|
||||
playField.Columns.ElementAt(2).Add(createTimingChange(start_time, true));
|
||||
|
||||
playField.Add(new DrawableHoldNote(new HoldNote
|
||||
|
@ -5,6 +5,9 @@ using osu.Game.Rulesets.Timing;
|
||||
|
||||
namespace osu.Game.Rulesets.Mania.Timing.Drawables
|
||||
{
|
||||
/// <summary>
|
||||
/// A timing change which scrolls with an increasing velocity, following a form of "gravity".
|
||||
/// </summary>
|
||||
public class DrawableManiaGravityTimingChange : DrawableManiaTimingChange
|
||||
{
|
||||
public DrawableManiaGravityTimingChange(TimingChange timingChange)
|
||||
|
Loading…
Reference in New Issue
Block a user