mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 20:22:55 +08:00
Merge branch 'master' into system-user-color
This commit is contained in:
commit
bb90a273ac
@ -213,8 +213,27 @@ namespace osu.Game.Online.Chat
|
|||||||
PostMessage(content, true);
|
PostMessage(content, true);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "join":
|
||||||
|
if (string.IsNullOrWhiteSpace(content))
|
||||||
|
{
|
||||||
|
target.AddNewMessages(new ErrorMessage("Usage: /join [channel]"));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
var channel = availableChannels.Where(c => c.Name == content || c.Name == $"#{content}").FirstOrDefault();
|
||||||
|
|
||||||
|
if (channel == null)
|
||||||
|
{
|
||||||
|
target.AddNewMessages(new ErrorMessage($"Channel '{content}' not found."));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
JoinChannel(channel);
|
||||||
|
CurrentChannel.Value = channel;
|
||||||
|
break;
|
||||||
|
|
||||||
case "help":
|
case "help":
|
||||||
target.AddNewMessages(new InfoMessage("Supported commands: /help, /me [action]"));
|
target.AddNewMessages(new InfoMessage("Supported commands: /help, /me [action], /join [channel]"));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -313,6 +313,9 @@ namespace osu.Game.Rulesets.Scoring
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Applies the score change of a <see cref="JudgementResult"/> to this <see cref="ScoreProcessor"/>.
|
/// Applies the score change of a <see cref="JudgementResult"/> to this <see cref="ScoreProcessor"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Any changes applied via this method can be reverted via <see cref="RevertResult"/>.
|
||||||
|
/// </remarks>
|
||||||
/// <param name="result">The <see cref="JudgementResult"/> to apply.</param>
|
/// <param name="result">The <see cref="JudgementResult"/> to apply.</param>
|
||||||
protected virtual void ApplyResult(JudgementResult result)
|
protected virtual void ApplyResult(JudgementResult result)
|
||||||
{
|
{
|
||||||
@ -357,7 +360,7 @@ namespace osu.Game.Rulesets.Scoring
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Reverts the score change of a <see cref="JudgementResult"/> that was applied to this <see cref="ScoreProcessor"/>.
|
/// Reverts the score change of a <see cref="JudgementResult"/> that was applied to this <see cref="ScoreProcessor"/> via <see cref="ApplyResult"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="result">The judgement scoring result.</param>
|
/// <param name="result">The judgement scoring result.</param>
|
||||||
protected virtual void RevertResult(JudgementResult result)
|
protected virtual void RevertResult(JudgementResult result)
|
||||||
|
Loading…
Reference in New Issue
Block a user