mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 16:12:54 +08:00
Show warning for linux as well
This commit is contained in:
parent
b70bd7689e
commit
075507648a
@ -55,9 +55,9 @@ namespace osu.Game.Localisation
|
|||||||
public static LocalisableString CursorSensitivity => new TranslatableString(getKey(@"cursor_sensitivity"), @"Cursor sensitivity");
|
public static LocalisableString CursorSensitivity => new TranslatableString(getKey(@"cursor_sensitivity"), @"Cursor sensitivity");
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// "This setting currently has issues on macOS. It is recommended to adjust sensitivity externally and keep this disabled for now."
|
/// "This setting currently has issues on your platform. It is recommended to adjust sensitivity externally and keep this disabled for now."
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static LocalisableString HighPrecisionMacOSWarning => new TranslatableString(getKey(@"high_precision_macos_warning"), @"This setting currently has issues on macOS. It is recommended to adjust sensitivity externally and keep this disabled for now.");
|
public static LocalisableString HighPrecisionPlatformWarning => new TranslatableString(getKey(@"high_precision_platform_warning"), @"This setting has known issues on your platform. If you encounter problems, it is recommended to adjust sensitivity externally and keep this disabled for now.");
|
||||||
|
|
||||||
private static string getKey(string key) => $@"{prefix}:{key}";
|
private static string getKey(string key) => $@"{prefix}:{key}";
|
||||||
}
|
}
|
||||||
|
@ -113,10 +113,10 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
|||||||
|
|
||||||
highPrecisionMouse.Current.BindValueChanged(highPrecision =>
|
highPrecisionMouse.Current.BindValueChanged(highPrecision =>
|
||||||
{
|
{
|
||||||
if (RuntimeInfo.OS == RuntimeInfo.Platform.macOS)
|
if (RuntimeInfo.OS != RuntimeInfo.Platform.Windows)
|
||||||
{
|
{
|
||||||
if (highPrecision.NewValue)
|
if (highPrecision.NewValue)
|
||||||
highPrecisionMouse.WarningText = MouseSettingsStrings.HighPrecisionMacOSWarning;
|
highPrecisionMouse.WarningText = MouseSettingsStrings.HighPrecisionPlatformWarning;
|
||||||
else
|
else
|
||||||
highPrecisionMouse.WarningText = null;
|
highPrecisionMouse.WarningText = null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user