mirror of
https://github.com/ppy/osu.git
synced 2025-02-07 03:59:02 +08:00
27 lines
748 B
C#
27 lines
748 B
C#
|
// 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);
|
||
|
}
|
||
|
}
|
||
|
}
|