1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 19:22:56 +08:00

Merge pull request #7534 from revelsix/fix-tooltip-capitalization

Fix tooltip capitalization
This commit is contained in:
Dean Herbert 2020-01-16 12:46:20 +09:00 committed by GitHub
commit ef735f106e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 15 additions and 15 deletions

View File

@ -63,7 +63,7 @@ namespace osu.Game.Graphics.Containers
} }
public void AddUserLink(User user, Action<SpriteText> creationParameters = null) public void AddUserLink(User user, Action<SpriteText> creationParameters = null)
=> createLink(AddText(user.Username, creationParameters), new LinkDetails(LinkAction.OpenUserProfile, user.Id.ToString()), "View Profile"); => createLink(AddText(user.Username, creationParameters), new LinkDetails(LinkAction.OpenUserProfile, user.Id.ToString()), "view profile");
private void createLink(IEnumerable<Drawable> drawables, LinkDetails link, string tooltipText, Action action = null) private void createLink(IEnumerable<Drawable> drawables, LinkDetails link, string tooltipText, Action action = null)
{ {

View File

@ -57,6 +57,6 @@ namespace osu.Game.Graphics.UserInterface
return true; return true;
} }
public string TooltipText => "View in browser"; public string TooltipText => "view in browser";
} }
} }

View File

@ -104,7 +104,7 @@ namespace osu.Game.Graphics.UserInterface
private class CapsWarning : SpriteIcon, IHasTooltip private class CapsWarning : SpriteIcon, IHasTooltip
{ {
public string TooltipText => @"Caps lock is active"; public string TooltipText => @"caps lock is active";
public CapsWarning() public CapsWarning()
{ {

View File

@ -24,7 +24,7 @@ namespace osu.Game.Overlays.BeatmapSet.Buttons
{ {
private readonly bool noVideo; private readonly bool noVideo;
public string TooltipText => button.Enabled.Value ? "Download this beatmap" : "Login to download"; public string TooltipText => button.Enabled.Value ? "download this beatmap" : "login to download";
private readonly IBindable<User> localUser = new Bindable<User>(); private readonly IBindable<User> localUser = new Bindable<User>();

View File

@ -48,7 +48,7 @@ namespace osu.Game.Overlays.Direct
if (BeatmapSet.Value.OnlineInfo.Availability?.DownloadDisabled ?? false) if (BeatmapSet.Value.OnlineInfo.Availability?.DownloadDisabled ?? false)
{ {
button.Enabled.Value = false; button.Enabled.Value = false;
button.TooltipText = "This beatmap is currently not available for download."; button.TooltipText = "this beatmap is currently not available for download.";
return; return;
} }

View File

@ -24,7 +24,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
public LevelBadge() public LevelBadge()
{ {
TooltipText = "Level"; TooltipText = "level";
} }
[BackgroundDependencyLoader] [BackgroundDependencyLoader]

View File

@ -25,7 +25,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
public LevelProgressBar() public LevelProgressBar()
{ {
TooltipText = "Progress to next level"; TooltipText = "progress to next level";
} }
[BackgroundDependencyLoader] [BackgroundDependencyLoader]

View File

@ -16,7 +16,7 @@ namespace osu.Game.Overlays.Settings.Sections.Input
new SettingsButton new SettingsButton
{ {
Text = "Key configuration", Text = "Key configuration",
TooltipText = "Change global shortcut keys and gameplay bindings", TooltipText = "change global shortcut keys and gameplay bindings",
Action = keyConfig.ToggleVisibility Action = keyConfig.ToggleVisibility
}, },
}; };

View File

@ -87,7 +87,7 @@ namespace osu.Game.Overlays.Settings.Sections.Input
private class SensitivitySlider : OsuSliderBar<double> private class SensitivitySlider : OsuSliderBar<double>
{ {
public override string TooltipText => Current.Disabled ? "Enable raw input to adjust sensitivity" : $"{base.TooltipText}x"; public override string TooltipText => Current.Disabled ? "enable raw input to adjust sensitivity" : $"{base.TooltipText}x";
} }
} }
} }

View File

@ -161,7 +161,7 @@ namespace osu.Game.Overlays.Settings
UpdateState(); UpdateState();
} }
public string TooltipText => "Revert to default"; public string TooltipText => "revert to default";
protected override bool OnClick(ClickEvent e) protected override bool OnClick(ClickEvent e)
{ {

View File

@ -74,15 +74,15 @@ namespace osu.Game.Screens.Ranking.Pages
switch (replayAvailability) switch (replayAvailability)
{ {
case ReplayAvailability.Local: case ReplayAvailability.Local:
button.TooltipText = @"Watch replay"; button.TooltipText = @"watch replay";
break; break;
case ReplayAvailability.Online: case ReplayAvailability.Online:
button.TooltipText = @"Download replay"; button.TooltipText = @"download replay";
break; break;
default: default:
button.TooltipText = @"Replay unavailable"; button.TooltipText = @"replay unavailable";
break; break;
} }
}, true); }, true);

View File

@ -39,7 +39,7 @@ namespace osu.Game.Screens.Ranking.Pages
}, },
}; };
TooltipText = "Retry"; TooltipText = "retry";
} }
[BackgroundDependencyLoader] [BackgroundDependencyLoader]

View File

@ -74,7 +74,7 @@ namespace osu.Game.Users.Drawables
private class ClickableArea : OsuClickableContainer private class ClickableArea : OsuClickableContainer
{ {
public override string TooltipText => Enabled.Value ? @"View Profile" : null; public override string TooltipText => Enabled.Value ? @"view profile" : null;
protected override bool OnClick(ClickEvent e) protected override bool OnClick(ClickEvent e)
{ {