1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 21:02:55 +08:00

rename GetTextBoxPlaceholder to GetPlaceholderText

This commit is contained in:
Liam DeVoe 2023-06-19 22:05:18 -04:00
parent f7dde53f9b
commit 60eedbafd1
3 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@ namespace osu.Game.Overlays.Comments
protected abstract LocalisableString GetCommitButtonText(bool isLoggedIn);
protected abstract LocalisableString GetTextBoxPlaceholder(bool isLoggedIn);
protected abstract LocalisableString GetPlaceholderText(bool isLoggedIn);
protected bool ShowLoadingSpinner
{
@ -173,7 +173,7 @@ namespace osu.Game.Overlays.Comments
private void updateStateForLoggedIn()
{
TextBox.PlaceholderText = GetTextBoxPlaceholder(API.IsLoggedIn);
TextBox.PlaceholderText = GetPlaceholderText(API.IsLoggedIn);
TextBox.ReadOnly = !API.IsLoggedIn;
commitButton.Text = GetCommitButtonText(API.IsLoggedIn);
updateCommitButtonState();

View File

@ -413,7 +413,7 @@ namespace osu.Game.Overlays.Comments
protected override LocalisableString GetCommitButtonText(bool isLoggedIn) =>
isLoggedIn ? CommonStrings.ButtonsPost : CommentsStrings.GuestButtonNew;
protected override LocalisableString GetTextBoxPlaceholder(bool isLoggedIn) =>
protected override LocalisableString GetPlaceholderText(bool isLoggedIn) =>
isLoggedIn ? CommentsStrings.PlaceholderNew : AuthorizationStrings.RequireLogin;
protected override void OnCommit(string text)

View File

@ -26,7 +26,7 @@ namespace osu.Game.Overlays.Comments
protected override LocalisableString GetCommitButtonText(bool isLoggedIn) =>
isLoggedIn ? CommonStrings.ButtonsReply : CommentsStrings.GuestButtonReply;
protected override LocalisableString GetTextBoxPlaceholder(bool isLoggedIn) =>
protected override LocalisableString GetPlaceholderText(bool isLoggedIn) =>
isLoggedIn ? CommentsStrings.PlaceholderReply : AuthorizationStrings.RequireLogin;
public ReplyCommentEditor(Comment parent)