2020-12-23 16:39:08 +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.
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Screens.Play
|
|
|
|
|
{
|
|
|
|
|
public class PlayerConfiguration
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Whether pausing should be allowed. If not allowed, attempting to pause will quit.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool AllowPause { get; set; } = true;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Whether results screen should be pushed on completion.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool ShowResults { get; set; } = true;
|
|
|
|
|
|
2024-01-04 15:41:52 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Whether the fail animation / screen should be triggered on failing.
|
|
|
|
|
/// If false, the score will still be marked as failed but gameplay will continue.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool AllowFailAnimation { get; set; } = true;
|
|
|
|
|
|
2020-12-23 16:39:08 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Whether the player should be allowed to trigger a restart.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool AllowRestart { get; set; } = true;
|
2020-12-24 15:29:51 +08:00
|
|
|
|
|
2021-08-16 15:16:02 +08:00
|
|
|
|
/// <summary>
|
2021-08-16 15:48:40 +08:00
|
|
|
|
/// Whether the player should be able to interact with this player instance.
|
2021-08-16 15:16:02 +08:00
|
|
|
|
/// </summary>
|
2021-08-16 15:48:40 +08:00
|
|
|
|
public bool AllowUserInteraction { get; set; } = true;
|
2021-08-16 15:16:02 +08:00
|
|
|
|
|
2020-12-24 15:29:51 +08:00
|
|
|
|
/// <summary>
|
2021-04-16 12:59:10 +08:00
|
|
|
|
/// Whether the player should be allowed to skip intros/outros, advancing to the start of gameplay or the end of a storyboard.
|
2020-12-24 15:29:51 +08:00
|
|
|
|
/// </summary>
|
2021-04-16 12:59:10 +08:00
|
|
|
|
public bool AllowSkipping { get; set; } = true;
|
2022-08-07 19:20:29 +08:00
|
|
|
|
|
2022-08-07 19:31:26 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Whether the intro should be skipped by default.
|
|
|
|
|
/// </summary>
|
2022-08-07 19:20:29 +08:00
|
|
|
|
public bool AutomaticallySkipIntro { get; set; }
|
2022-09-13 17:12:49 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Whether the gameplay leaderboard should always be shown (usually in a contracted state).
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool AlwaysShowLeaderboard { get; set; }
|
2020-12-23 16:39:08 +08:00
|
|
|
|
}
|
|
|
|
|
}
|