diff --git a/osu.Game/Input/ConfineMouseTracker.cs b/osu.Game/Input/ConfineMouseTracker.cs
index 3d16e44607..3dadae6317 100644
--- a/osu.Game/Input/ConfineMouseTracker.cs
+++ b/osu.Game/Input/ConfineMouseTracker.cs
@@ -12,24 +12,24 @@ namespace osu.Game.Input
{
///
/// Connects with .
- /// If is true, we should also confine the mouse cursor if it has been
+ /// If is true, we should also confine the mouse cursor if it has been
/// requested with .
///
public class ConfineMouseTracker : Component
{
private Bindable frameworkConfineMode;
private Bindable osuConfineMode;
- private IBindable isGameplay;
+ private IBindable localUserPlaying;
[BackgroundDependencyLoader]
private void load(OsuGame game, FrameworkConfigManager frameworkConfigManager, OsuConfigManager osuConfigManager)
{
frameworkConfineMode = frameworkConfigManager.GetBindable(FrameworkSetting.ConfineMouseMode);
osuConfineMode = osuConfigManager.GetBindable(OsuSetting.ConfineMouseMode);
- isGameplay = game.IsGameplay.GetBoundCopy();
+ localUserPlaying = game.LocalUserPlaying.GetBoundCopy();
osuConfineMode.ValueChanged += _ => updateConfineMode();
- isGameplay.BindValueChanged(_ => updateConfineMode(), true);
+ localUserPlaying.BindValueChanged(_ => updateConfineMode(), true);
}
private void updateConfineMode()
@@ -49,7 +49,7 @@ namespace osu.Game.Input
break;
case OsuConfineMouseMode.DuringGameplay:
- frameworkConfineMode.Value = isGameplay.Value ? ConfineMouseMode.Always : ConfineMouseMode.Never;
+ frameworkConfineMode.Value = localUserPlaying.Value ? ConfineMouseMode.Always : ConfineMouseMode.Never;
break;
case OsuConfineMouseMode.Always:
diff --git a/osu.Game/OsuGame.cs b/osu.Game/OsuGame.cs
index 466ff13615..c09ad0eeb9 100644
--- a/osu.Game/OsuGame.cs
+++ b/osu.Game/OsuGame.cs
@@ -98,9 +98,9 @@ namespace osu.Game
public readonly IBindable OverlayActivationMode = new Bindable();
///
- /// Whether gameplay is currently active.
+ /// Whether the local user is currently interacting with the game in a way that should not be interrupted.
///
- public readonly Bindable IsGameplay = new BindableBool();
+ public readonly Bindable LocalUserPlaying = new BindableBool();
protected OsuScreenStack ScreenStack;
diff --git a/osu.Game/Screens/Play/Player.cs b/osu.Game/Screens/Play/Player.cs
index 932c5ba1df..e6c15521af 100644
--- a/osu.Game/Screens/Play/Player.cs
+++ b/osu.Game/Screens/Play/Player.cs
@@ -68,7 +68,7 @@ namespace osu.Game.Screens.Play
private readonly Bindable storyboardReplacesBackground = new Bindable();
- private readonly Bindable isGameplay = new Bindable();
+ private readonly Bindable localUserPlaying = new Bindable();
public int RestartCount;
@@ -175,7 +175,7 @@ namespace osu.Game.Screens.Play
mouseWheelDisabled = config.GetBindable(OsuSetting.MouseDisableWheel);
if (game is OsuGame osuGame)
- isGameplay.BindTo(osuGame.IsGameplay);
+ localUserPlaying.BindTo(osuGame.LocalUserPlaying);
DrawableRuleset = ruleset.CreateDrawableRulesetWith(playableBeatmap, Mods.Value);
@@ -362,7 +362,7 @@ namespace osu.Game.Screens.Play
{
bool inGameplay = !DrawableRuleset.HasReplayLoaded.Value && !DrawableRuleset.IsPaused.Value && !breakTracker.IsBreakTime.Value;
OverlayActivationMode.Value = inGameplay ? OverlayActivation.Disabled : OverlayActivation.UserTriggered;
- isGameplay.Value = inGameplay;
+ localUserPlaying.Value = inGameplay;
}
private void updatePauseOnFocusLostState() =>
@@ -695,8 +695,8 @@ namespace osu.Game.Screens.Play
musicController.ResetTrackAdjustments();
- // Ensure we reset the IsGameplay state
- isGameplay.Value = false;
+ // Ensure we reset the LocalUserPlaying state
+ localUserPlaying.Value = false;
fadeOut();
return base.OnExiting(next);