mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Whoops wrong project.
This commit is contained in:
27
osu.Game.Rulesets.Mania/Timing/DrawableTimingSection.cs
Normal file
27
osu.Game.Rulesets.Mania/Timing/DrawableTimingSection.cs
Normal file
@ -0,0 +1,27 @@
|
||||
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using OpenTK;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
|
||||
namespace osu.Game.Rulesets.Mania.Timing
|
||||
{
|
||||
public class DrawableTimingSection : Container
|
||||
{
|
||||
private readonly TimingSection section;
|
||||
|
||||
public DrawableTimingSection(TimingSection section)
|
||||
{
|
||||
this.section = section;
|
||||
|
||||
RelativePositionAxes = Axes.Y;
|
||||
Y = -(float)section.StartTime;
|
||||
|
||||
RelativeSizeAxes = Axes.Both;
|
||||
Height = (float)section.Duration;
|
||||
|
||||
RelativeCoordinateSpace = new Vector2(1, Height);
|
||||
}
|
||||
}
|
||||
}
|
15
osu.Game.Rulesets.Mania/Timing/TimingSection.cs
Normal file
15
osu.Game.Rulesets.Mania/Timing/TimingSection.cs
Normal file
@ -0,0 +1,15 @@
|
||||
// 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.Game.Beatmaps.Timing;
|
||||
|
||||
namespace osu.Game.Rulesets.Mania.Timing
|
||||
{
|
||||
public class TimingSection
|
||||
{
|
||||
public double StartTime;
|
||||
public double Duration;
|
||||
public double BeatLength;
|
||||
public TimeSignatures TimeSignature;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user