1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-07 03:59:02 +08:00
osu-lazer/osu.Game.Rulesets.Taiko/Timing/DrawableTimingSection.cs

27 lines
748 B
C#
Raw Normal View History

2017-05-10 13:56:39 +08:00
// 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.Taiko.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);
}
}
}