2023-01-10 04:48:53 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
namespace osu.Game.Screens.Play.HUD
|
|
|
|
{
|
|
|
|
public interface ISongProgressBar
|
|
|
|
{
|
2023-01-18 13:43:20 +08:00
|
|
|
/// <summary>
|
|
|
|
/// Whether the progress bar should allow interaction, ie. to perform seek operations.
|
|
|
|
/// </summary>
|
2023-01-10 04:48:53 +08:00
|
|
|
public bool Interactive { get; set; }
|
2023-01-18 13:43:20 +08:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Action which is invoked when a seek is requested, with the proposed millisecond value for the seek operation.
|
|
|
|
/// </summary>
|
|
|
|
public Action<double>? OnSeek { get; set; }
|
2023-01-10 04:48:53 +08:00
|
|
|
}
|
|
|
|
}
|