mirror of
https://github.com/ppy/osu
synced 2024-12-29 10:22:43 +00:00
70 lines
2.5 KiB
C#
70 lines
2.5 KiB
C#
// 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 osu.Framework.Bindables;
|
|
using osu.Framework.Screens;
|
|
using osu.Game.Beatmaps;
|
|
using osu.Game.Overlays;
|
|
using osu.Game.Rulesets;
|
|
|
|
namespace osu.Game.Screens
|
|
{
|
|
public interface IOsuScreen : IScreen
|
|
{
|
|
/// <summary>
|
|
/// Whether the beatmap or ruleset should be allowed to be changed by the user or game.
|
|
/// Used to mark exclusive areas where this is strongly prohibited, like gameplay.
|
|
/// </summary>
|
|
bool DisallowExternalBeatmapRulesetChanges { get; }
|
|
|
|
/// <summary>
|
|
/// Whether the user can exit this this <see cref="IOsuScreen"/> by pressing the back button.
|
|
/// </summary>
|
|
bool AllowBackButton { get; }
|
|
|
|
/// <summary>
|
|
/// Whether a top-level component should be allowed to exit the current screen to, for example,
|
|
/// complete an import. Note that this can be overridden by a user if they specifically request.
|
|
/// </summary>
|
|
bool AllowExternalScreenChange { get; }
|
|
|
|
/// <summary>
|
|
/// Whether this <see cref="OsuScreen"/> allows the cursor to be displayed.
|
|
/// </summary>
|
|
bool CursorVisible { get; }
|
|
|
|
/// <summary>
|
|
/// Whether all overlays should be hidden when this screen is entered or resumed.
|
|
/// </summary>
|
|
bool HideOverlaysOnEnter { get; }
|
|
|
|
/// <summary>
|
|
/// Whether overlays should be able to be opened when this screen is current.
|
|
/// </summary>
|
|
IBindable<OverlayActivation> OverlayActivationMode { get; }
|
|
|
|
/// <summary>
|
|
/// The amount of parallax to be applied while this screen is displayed.
|
|
/// </summary>
|
|
float BackgroundParallaxAmount { get; }
|
|
|
|
Bindable<WorkingBeatmap> Beatmap { get; }
|
|
|
|
Bindable<RulesetInfo> Ruleset { get; }
|
|
|
|
/// <summary>
|
|
/// Whether mod rate adjustments are allowed to be applied.
|
|
/// </summary>
|
|
bool AllowRateAdjustments { get; }
|
|
|
|
/// <summary>
|
|
/// Invoked when the back button has been pressed to close any overlays before exiting this <see cref="IOsuScreen"/>.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Return <c>true</c> to block this <see cref="IOsuScreen"/> from being exited after closing an overlay.
|
|
/// Return <c>false</c> if this <see cref="IOsuScreen"/> should continue exiting.
|
|
/// </remarks>
|
|
bool OnBackButton();
|
|
}
|
|
}
|