mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 20:05:29 +08:00
Refactor overlay activation logic and reword tip.
This commit is contained in:
parent
30c7a6f6a7
commit
71895964f4
@ -190,7 +190,7 @@ namespace osu.Game.Screens.Menu
|
||||
{
|
||||
"You can press Ctrl-T anywhere in the game to toggle the toolbar!",
|
||||
"You can press Ctrl-O anywhere in the game to access options!",
|
||||
"All settings are dynamic and take effect in real-time. Try changing the skin while playing!",
|
||||
"All settings are dynamic and take effect in real-time. Try pausing and changing the skin while playing!",
|
||||
"New features are coming online every update. Make sure to stay up-to-date!",
|
||||
"If you find the UI too large or small, try adjusting UI scale in settings!",
|
||||
"Try adjusting the \"Screen Scaling\" mode to change your gameplay or UI area, even in fullscreen!",
|
||||
|
@ -361,10 +361,12 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
private void updateOverlayActivationMode()
|
||||
{
|
||||
if (DrawableRuleset.HasReplayLoaded.Value)
|
||||
bool canTriggerOverlays = DrawableRuleset.IsPaused.Value || !gameplayOverlaysDisabled.Value;
|
||||
|
||||
if (DrawableRuleset.HasReplayLoaded.Value || canTriggerOverlays)
|
||||
OverlayActivationMode.Value = OverlayActivation.UserTriggered;
|
||||
else
|
||||
OverlayActivationMode.Value = gameplayOverlaysDisabled.Value && !DrawableRuleset.IsPaused.Value ? OverlayActivation.Disabled : OverlayActivation.UserTriggered;
|
||||
OverlayActivationMode.Value = OverlayActivation.Disabled;
|
||||
}
|
||||
|
||||
private void updatePauseOnFocusLostState() =>
|
||||
|
Loading…
Reference in New Issue
Block a user