osu/osu.Game/Screens/IOsuScreen.cs

51 lines
1.7 KiB
C#
Raw Normal View History

2019-01-29 12:48:35 +00: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.
2019-01-23 11:52:00 +00:00
2019-02-21 10:04:31 +00:00
using osu.Framework.Bindables;
2019-01-23 11:52:00 +00:00
using osu.Framework.Screens;
2019-02-01 06:42:15 +00:00
using osu.Game.Beatmaps;
using osu.Game.Overlays;
2019-02-01 06:42:15 +00:00
using osu.Game.Rulesets;
2019-01-23 11:52:00 +00:00
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>
2019-02-01 06:42:15 +00:00
bool DisallowExternalBeatmapRulesetChanges { get; }
2019-01-23 11:52:00 +00:00
/// <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; }
2019-01-23 11:52:00 +00:00
/// <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 once this screen is entered or resumed.
/// </summary>
OverlayActivation InitialOverlayActivationMode { get; }
/// <summary>
/// The amount of parallax to be applied while this screen is displayed.
/// </summary>
float BackgroundParallaxAmount { get; }
2019-02-01 06:42:15 +00:00
Bindable<WorkingBeatmap> Beatmap { get; }
Bindable<RulesetInfo> Ruleset { get; }
2019-01-23 11:52:00 +00:00
}
}