mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 21:07:18 +09:00
Add further xmldoc
This commit is contained in:
parent
a73bae7a66
commit
f6a09be62d
@ -20,6 +20,14 @@ namespace osu.Game.Screens.Play
|
|||||||
private readonly Storyboard storyboard;
|
private readonly Storyboard storyboard;
|
||||||
private DrawableStoryboard drawableStoryboard;
|
private DrawableStoryboard drawableStoryboard;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Whether the storyboard is considered finished.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This is true by default in here, until an actual drawable storyboard is loaded, in which case it'll bind to it.
|
||||||
|
/// </remarks>
|
||||||
|
public IBindable<bool> HasStoryboardEnded = new BindableBool(true);
|
||||||
|
|
||||||
public DimmableStoryboard(Storyboard storyboard)
|
public DimmableStoryboard(Storyboard storyboard)
|
||||||
{
|
{
|
||||||
this.storyboard = storyboard;
|
this.storyboard = storyboard;
|
||||||
@ -63,7 +71,5 @@ namespace osu.Game.Screens.Play
|
|||||||
Add(storyboard);
|
Add(storyboard);
|
||||||
OverlayLayerContainer.Add(storyboard.OverlayLayer.CreateProxy());
|
OverlayLayerContainer.Add(storyboard.OverlayLayer.CreateProxy());
|
||||||
}
|
}
|
||||||
|
|
||||||
public IBindable<bool> HasStoryboardEnded = new BindableBool(true);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -91,7 +91,7 @@ namespace osu.Game.Storyboards.Drawables
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether the storyboard has ended after the gameplay portion of the beatmap.
|
/// Whether the storyboard is considered finished.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public IBindable<bool> HasStoryboardEnded => hasStoryboardEnded;
|
public IBindable<bool> HasStoryboardEnded => hasStoryboardEnded;
|
||||||
|
|
||||||
|
@ -18,13 +18,13 @@ namespace osu.Game.Storyboards
|
|||||||
public static class StoryboardElementExtensions
|
public static class StoryboardElementExtensions
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the end time of this object.
|
/// Returns the end time of this storyboard element.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// This returns the <see cref="IStoryboardElementHasDuration.EndTime"/> where available, falling back to <see cref="IStoryboardElement.StartTime"/> otherwise.
|
/// This returns the <see cref="IStoryboardElementHasDuration.EndTime"/> where available, falling back to <see cref="IStoryboardElement.StartTime"/> otherwise.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="storyboardElement">The object.</param>
|
/// <param name="element">The storyboard element.</param>
|
||||||
/// <returns>The end time of this object.</returns>
|
/// <returns>The end time of this element.</returns>
|
||||||
public static double GetEndTime(this IStoryboardElement storyboardElement) => (storyboardElement as IStoryboardElementHasDuration)?.EndTime ?? storyboardElement.StartTime;
|
public static double GetEndTime(this IStoryboardElement element) => (element as IStoryboardElementHasDuration)?.EndTime ?? element.StartTime;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,10 +4,13 @@
|
|||||||
namespace osu.Game.Storyboards
|
namespace osu.Game.Storyboards
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A StoryboardElement that ends at a different time than its start time.
|
/// A <see cref="IStoryboardElement"/> that ends at a different time than its start time.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public interface IStoryboardElementHasDuration
|
public interface IStoryboardElementHasDuration
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The time at which the <see cref="IStoryboardElement"/> ends.
|
||||||
|
/// </summary>
|
||||||
double EndTime { get; }
|
double EndTime { get; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user