1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 13:37:25 +08:00

Make appveyor happy.

This commit is contained in:
Lucas A 2019-05-05 21:32:23 +02:00
parent 3d8b56fe57
commit a50bbf7f42
6 changed files with 7 additions and 13 deletions

View File

@ -275,7 +275,6 @@ namespace osu.Game.Tests.Visual.Background
private class DummySongSelect : PlaySongSelect private class DummySongSelect : PlaySongSelect
{ {
protected override BackgroundScreen CreateBackground() protected override BackgroundScreen CreateBackground()
{ {
FadeAccessibleBackground background = new FadeAccessibleBackground(Beatmap.Value); FadeAccessibleBackground background = new FadeAccessibleBackground(Beatmap.Value);
@ -319,7 +318,6 @@ namespace osu.Game.Tests.Visual.Background
private class FadeAccessibleResults : SoloResults private class FadeAccessibleResults : SoloResults
{ {
public FadeAccessibleResults(ScoreInfo score) public FadeAccessibleResults(ScoreInfo score)
: base(score) : base(score)
{ {
@ -332,7 +330,6 @@ namespace osu.Game.Tests.Visual.Background
private class TestPlayer : Player private class TestPlayer : Player
{ {
protected override BackgroundScreen CreateBackground() => new FadeAccessibleBackground(Beatmap.Value); protected override BackgroundScreen CreateBackground() => new FadeAccessibleBackground(Beatmap.Value);
protected override UserDimContainer CreateStoryboardContainer() protected override UserDimContainer CreateStoryboardContainer()

View File

@ -12,7 +12,6 @@ using osu.Game.Rulesets;
using osu.Game.Rulesets.Osu; using osu.Game.Rulesets.Osu;
using osu.Game.Rulesets.Scoring; using osu.Game.Rulesets.Scoring;
using osu.Game.Screens.Play; using osu.Game.Screens.Play;
using osu.Game.Users;
using osuTK; using osuTK;
using osuTK.Input; using osuTK.Input;

View File

@ -12,8 +12,8 @@ namespace osu.Game.Tests.Visual.Online
[TestFixture] [TestFixture]
public class TestCaseUserPanel : OsuTestCase public class TestCaseUserPanel : OsuTestCase
{ {
UserPanel flyte; private readonly UserPanel flyte;
UserPanel peppy; private readonly UserPanel peppy;
public TestCaseUserPanel() public TestCaseUserPanel()
{ {

View File

@ -64,15 +64,15 @@ namespace osu.Game.Screens
/// </summary> /// </summary>
protected UserActivity ScreenActivity protected UserActivity ScreenActivity
{ {
get => activity;
set set
{ {
if (value == null) return; if (value == activity) return;
if (api == null) return; if (api == null) return;
activity = value; activity = value;
api.LocalUser.Value.Activity.Value = activity; api.LocalUser.Value.Activity.Value = activity;
} }
get => activity;
} }
private UserActivity activity; private UserActivity activity;

View File

@ -65,6 +65,4 @@ namespace osu.Game.Users
{ {
public override string Status => @"in Multiplayer Lobby"; public override string Status => @"in Multiplayer Lobby";
} }
} }

View File

@ -238,10 +238,10 @@ namespace osu.Game.Users
statusBg.FadeColour(activity.GetAppropriateColour(colours), 500, Easing.OutQuint); statusBg.FadeColour(activity.GetAppropriateColour(colours), 500, Easing.OutQuint);
return; return;
} }
statusMessage.Text = status.Message;
statusBg.FadeColour(status?.GetAppropriateColour(colours) ?? colours.Gray5, 500, Easing.OutQuint);
} }
statusMessage.Text = status?.Message;
statusBg.FadeColour(status?.GetAppropriateColour(colours) ?? colours.Gray5, 500, Easing.OutQuint);
} }
public MenuItem[] ContextMenuItems => new MenuItem[] public MenuItem[] ContextMenuItems => new MenuItem[]