mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 20:32:55 +08:00
Move storyboard logic region down
This commit is contained in:
parent
aa1dfdd663
commit
5b8fd6822e
@ -67,41 +67,6 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
protected HUDOverlay HUDOverlay { get; private set; }
|
protected HUDOverlay HUDOverlay { get; private set; }
|
||||||
|
|
||||||
#region Storyboard
|
|
||||||
|
|
||||||
private DrawableStoryboard storyboard;
|
|
||||||
protected UserDimContainer StoryboardContainer { get; private set; }
|
|
||||||
|
|
||||||
private void initializeStoryboard(bool asyncLoad)
|
|
||||||
{
|
|
||||||
if (StoryboardContainer == null || storyboard != null)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (!showStoryboard.Value)
|
|
||||||
return;
|
|
||||||
|
|
||||||
var beatmap = Beatmap.Value;
|
|
||||||
|
|
||||||
storyboard = beatmap.Storyboard.CreateDrawable();
|
|
||||||
storyboard.Masking = true;
|
|
||||||
|
|
||||||
if (asyncLoad)
|
|
||||||
LoadComponentAsync(storyboard, StoryboardContainer.Add);
|
|
||||||
else
|
|
||||||
StoryboardContainer.Add(storyboard);
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
private Bindable<bool> showStoryboard;
|
|
||||||
|
|
||||||
protected virtual UserDimContainer CreateStoryboardContainer() => new UserDimContainer(true)
|
|
||||||
{
|
|
||||||
RelativeSizeAxes = Axes.Both,
|
|
||||||
Alpha = 1,
|
|
||||||
EnableUserDim = { Value = true }
|
|
||||||
};
|
|
||||||
|
|
||||||
public bool LoadedBeatmapSuccessfully => DrawableRuleset?.Objects.Any() == true;
|
public bool LoadedBeatmapSuccessfully => DrawableRuleset?.Objects.Any() == true;
|
||||||
|
|
||||||
protected GameplayClockContainer GameplayClockContainer { get; private set; }
|
protected GameplayClockContainer GameplayClockContainer { get; private set; }
|
||||||
@ -307,6 +272,41 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
protected virtual Results CreateResults(ScoreInfo score) => new SoloResults(score);
|
protected virtual Results CreateResults(ScoreInfo score) => new SoloResults(score);
|
||||||
|
|
||||||
|
#region Storyboard
|
||||||
|
|
||||||
|
private DrawableStoryboard storyboard;
|
||||||
|
protected UserDimContainer StoryboardContainer { get; private set; }
|
||||||
|
|
||||||
|
protected virtual UserDimContainer CreateStoryboardContainer() => new UserDimContainer(true)
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
Alpha = 1,
|
||||||
|
EnableUserDim = { Value = true }
|
||||||
|
};
|
||||||
|
|
||||||
|
private Bindable<bool> showStoryboard;
|
||||||
|
|
||||||
|
private void initializeStoryboard(bool asyncLoad)
|
||||||
|
{
|
||||||
|
if (StoryboardContainer == null || storyboard != null)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (!showStoryboard.Value)
|
||||||
|
return;
|
||||||
|
|
||||||
|
var beatmap = Beatmap.Value;
|
||||||
|
|
||||||
|
storyboard = beatmap.Storyboard.CreateDrawable();
|
||||||
|
storyboard.Masking = true;
|
||||||
|
|
||||||
|
if (asyncLoad)
|
||||||
|
LoadComponentAsync(storyboard, StoryboardContainer.Add);
|
||||||
|
else
|
||||||
|
StoryboardContainer.Add(storyboard);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region Fail Logic
|
#region Fail Logic
|
||||||
|
|
||||||
protected FailOverlay FailOverlay { get; private set; }
|
protected FailOverlay FailOverlay { get; private set; }
|
||||||
|
Loading…
Reference in New Issue
Block a user