mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:27:29 +08:00
rename GetTextBoxPlaceholder to GetPlaceholderText
This commit is contained in:
parent
f7dde53f9b
commit
60eedbafd1
@ -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();
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user