mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 05:53:10 +08:00
bound bind during gameplay
This commit is contained in:
parent
26c128a093
commit
a4065486c1
@ -78,6 +78,7 @@ namespace osu.Game.Screens.Play
|
||||
public Bindable<bool> ShowHud { get; } = new BindableBool();
|
||||
|
||||
private Bindable<HUDVisibilityMode> configVisibilityMode;
|
||||
private Bindable<bool> configLeaderboardVisibility;
|
||||
private Bindable<bool> configSettingsOverlay;
|
||||
|
||||
private readonly BindableBool replayLoaded = new BindableBool();
|
||||
@ -179,6 +180,7 @@ namespace osu.Game.Screens.Play
|
||||
ModDisplay.Current.Value = mods;
|
||||
|
||||
configVisibilityMode = config.GetBindable<HUDVisibilityMode>(OsuSetting.HUDVisibilityMode);
|
||||
configLeaderboardVisibility = config.GetBindable<bool>(OsuSetting.GameplayLeaderboard);
|
||||
configSettingsOverlay = config.GetBindable<bool>(OsuSetting.ReplaySettingsOverlay);
|
||||
|
||||
if (configVisibilityMode.Value == HUDVisibilityMode.Never && !hasShownNotificationOnce)
|
||||
@ -381,6 +383,10 @@ namespace osu.Game.Screens.Play
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
case GlobalAction.ToggleInGameLeaderboard:
|
||||
configLeaderboardVisibility.Value = !configLeaderboardVisibility.Value;
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user