mirror of
https://github.com/ppy/osu
synced 2024-12-16 20:05:41 +00:00
Should not be a container
This commit is contained in:
parent
b48f99ba4b
commit
23f12e1ea3
@ -41,7 +41,7 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
CornerRadius = 5;
|
CornerRadius = 5;
|
||||||
Masking = true;
|
Masking = true;
|
||||||
|
|
||||||
Children = new Drawable[]
|
InternalChildren = new Drawable[]
|
||||||
{
|
{
|
||||||
background = new Box
|
background = new Box
|
||||||
{
|
{
|
||||||
@ -105,9 +105,9 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
audioBar.Length = (float)Interpolation.Lerp(audioBar.Length, NormalizedValue, Math.Clamp(Time.Elapsed / 40, 0, 1));
|
audioBar.Length = (float)Interpolation.Lerp(audioBar.Length, NormalizedValue, Math.Clamp(Time.Elapsed / 40, 0, 1));
|
||||||
|
|
||||||
if (trackTime > CurrentTime)
|
if (trackTime > CurrentTime)
|
||||||
ChangeChildDepth(audioBar, -1);
|
ChangeInternalChildDepth(audioBar, -1);
|
||||||
else
|
else
|
||||||
ChangeChildDepth(audioBar, 0);
|
ChangeInternalChildDepth(audioBar, 0);
|
||||||
|
|
||||||
float timeDelta = (float)Math.Abs(CurrentTime - trackTime);
|
float timeDelta = (float)Math.Abs(CurrentTime - trackTime);
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
RelativeSizeAxes = Axes.X;
|
RelativeSizeAxes = Axes.X;
|
||||||
Height = barHeight + handleBarHeight + handleSize.Y;
|
Height = barHeight + handleBarHeight + handleSize.Y;
|
||||||
|
|
||||||
Children = new Drawable[]
|
InternalChildren = new Drawable[]
|
||||||
{
|
{
|
||||||
new Box
|
new Box
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ using osuTK;
|
|||||||
|
|
||||||
namespace osu.Game.Screens.Play.HUD
|
namespace osu.Game.Screens.Play.HUD
|
||||||
{
|
{
|
||||||
public abstract partial class SongProgressBar : Container
|
public abstract partial class SongProgressBar : CompositeDrawable
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Action which is invoked when a seek is requested, with the proposed millisecond value for the seek operation.
|
/// Action which is invoked when a seek is requested, with the proposed millisecond value for the seek operation.
|
||||||
|
Loading…
Reference in New Issue
Block a user