1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-05 14:32:56 +08:00

Show touch taps setting in player loader on mobile platforms

This commit is contained in:
Susko3 2023-11-09 14:37:10 +01:00
parent 51cf85a9ab
commit 0c4c9aa4b5

View File

@ -1,6 +1,7 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // 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. // See the LICENCE file in the repository root for full licence text.
using osu.Framework;
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Game.Configuration; using osu.Game.Configuration;
@ -22,8 +23,9 @@ namespace osu.Game.Screens.Play.PlayerSettings
{ {
new PlayerCheckbox new PlayerCheckbox
{ {
LabelText = MouseSettingsStrings.DisableClicksDuringGameplay, // TODO: change to touchscreen detection once https://github.com/ppy/osu/pull/25348 makes it in
Current = config.GetBindable<bool>(OsuSetting.MouseDisableButtons) LabelText = RuntimeInfo.IsDesktop ? MouseSettingsStrings.DisableClicksDuringGameplay : TouchSettingsStrings.DisableTapsDuringGameplay,
Current = config.GetBindable<bool>(RuntimeInfo.IsDesktop ? OsuSetting.MouseDisableButtons : OsuSetting.TouchDisableGameplayTaps)
} }
}; };
} }