mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
Merge remote-tracking branch 'upstream/master' into smoogipoo-editor-timeline-rework
This commit is contained in:
@ -6,7 +6,6 @@ using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Shapes;
|
||||
using osu.Framework.MathUtils;
|
||||
using osu.Game.Graphics;
|
||||
using osu.Game.Online.API.Requests;
|
||||
using osu.Game.Overlays.BeatmapSet.Scores;
|
||||
using osu.Game.Rulesets.Mods;
|
||||
using osu.Game.Rulesets.Osu.Mods;
|
||||
@ -15,6 +14,7 @@ using osu.Game.Users;
|
||||
using System.Collections.Generic;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Online.API.Requests.Responses;
|
||||
using osu.Game.Rulesets.Osu;
|
||||
|
||||
namespace osu.Game.Tests.Visual
|
||||
@ -22,9 +22,9 @@ namespace osu.Game.Tests.Visual
|
||||
[System.ComponentModel.Description("in BeatmapOverlay")]
|
||||
public class TestCaseBeatmapScoresContainer : OsuTestCase
|
||||
{
|
||||
private readonly IEnumerable<OnlineScore> scores;
|
||||
private readonly IEnumerable<OnlineScore> anotherScores;
|
||||
private readonly OnlineScore topScore;
|
||||
private readonly IEnumerable<APIScore> scores;
|
||||
private readonly IEnumerable<APIScore> anotherScores;
|
||||
private readonly APIScore topScore;
|
||||
private readonly Box background;
|
||||
|
||||
public TestCaseBeatmapScoresContainer()
|
||||
@ -57,7 +57,7 @@ namespace osu.Game.Tests.Visual
|
||||
|
||||
scores = new[]
|
||||
{
|
||||
new OnlineScore
|
||||
new APIScore
|
||||
{
|
||||
User = new User
|
||||
{
|
||||
@ -80,7 +80,7 @@ namespace osu.Game.Tests.Visual
|
||||
TotalScore = 1234567890,
|
||||
Accuracy = 1,
|
||||
},
|
||||
new OnlineScore
|
||||
new APIScore
|
||||
{
|
||||
User = new User
|
||||
{
|
||||
@ -102,7 +102,7 @@ namespace osu.Game.Tests.Visual
|
||||
TotalScore = 1234789,
|
||||
Accuracy = 0.9997,
|
||||
},
|
||||
new OnlineScore
|
||||
new APIScore
|
||||
{
|
||||
User = new User
|
||||
{
|
||||
@ -123,7 +123,7 @@ namespace osu.Game.Tests.Visual
|
||||
TotalScore = 12345678,
|
||||
Accuracy = 0.9854,
|
||||
},
|
||||
new OnlineScore
|
||||
new APIScore
|
||||
{
|
||||
User = new User
|
||||
{
|
||||
@ -143,7 +143,7 @@ namespace osu.Game.Tests.Visual
|
||||
TotalScore = 1234567,
|
||||
Accuracy = 0.8765,
|
||||
},
|
||||
new OnlineScore
|
||||
new APIScore
|
||||
{
|
||||
User = new User
|
||||
{
|
||||
@ -169,7 +169,7 @@ namespace osu.Game.Tests.Visual
|
||||
|
||||
anotherScores = new[]
|
||||
{
|
||||
new OnlineScore
|
||||
new APIScore
|
||||
{
|
||||
User = new User
|
||||
{
|
||||
@ -191,7 +191,7 @@ namespace osu.Game.Tests.Visual
|
||||
TotalScore = 1234789,
|
||||
Accuracy = 0.9997,
|
||||
},
|
||||
new OnlineScore
|
||||
new APIScore
|
||||
{
|
||||
User = new User
|
||||
{
|
||||
@ -214,7 +214,7 @@ namespace osu.Game.Tests.Visual
|
||||
TotalScore = 1234567890,
|
||||
Accuracy = 1,
|
||||
},
|
||||
new OnlineScore
|
||||
new APIScore
|
||||
{
|
||||
User = new User
|
||||
{
|
||||
@ -230,7 +230,7 @@ namespace osu.Game.Tests.Visual
|
||||
TotalScore = 123456,
|
||||
Accuracy = 0.6543,
|
||||
},
|
||||
new OnlineScore
|
||||
new APIScore
|
||||
{
|
||||
User = new User
|
||||
{
|
||||
@ -251,7 +251,7 @@ namespace osu.Game.Tests.Visual
|
||||
TotalScore = 12345678,
|
||||
Accuracy = 0.9854,
|
||||
},
|
||||
new OnlineScore
|
||||
new APIScore
|
||||
{
|
||||
User = new User
|
||||
{
|
||||
@ -279,7 +279,7 @@ namespace osu.Game.Tests.Visual
|
||||
s.Statistics.Add(HitResult.Meh, RNG.Next(2000));
|
||||
}
|
||||
|
||||
topScore = new OnlineScore
|
||||
topScore = new APIScore
|
||||
{
|
||||
User = new User
|
||||
{
|
||||
|
@ -12,6 +12,7 @@ using osu.Game.Overlays.Profile.Sections.Recent;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using osu.Game.Online.API.Requests.Responses;
|
||||
|
||||
namespace osu.Game.Tests.Visual
|
||||
{
|
||||
@ -49,15 +50,15 @@ namespace osu.Game.Tests.Visual
|
||||
};
|
||||
}
|
||||
|
||||
private IEnumerable<RecentActivity> createDummyActivities()
|
||||
private IEnumerable<APIRecentActivity> createDummyActivities()
|
||||
{
|
||||
var dummyBeatmap = new RecentActivity.RecentActivityBeatmap
|
||||
var dummyBeatmap = new APIRecentActivity.RecentActivityBeatmap
|
||||
{
|
||||
Title = @"Dummy beatmap",
|
||||
Url = "/b/1337",
|
||||
};
|
||||
|
||||
var dummyUser = new RecentActivity.RecentActivityUser
|
||||
var dummyUser = new APIRecentActivity.RecentActivityUser
|
||||
{
|
||||
Username = "DummyReborn",
|
||||
Url = "/u/666",
|
||||
@ -66,61 +67,61 @@ namespace osu.Game.Tests.Visual
|
||||
|
||||
return new[]
|
||||
{
|
||||
new RecentActivity
|
||||
new APIRecentActivity
|
||||
{
|
||||
User = dummyUser,
|
||||
Type = RecentActivityType.Achievement,
|
||||
Achievement = new RecentActivity.RecentActivityAchievement
|
||||
Achievement = new APIRecentActivity.RecentActivityAchievement
|
||||
{
|
||||
Name = @"Feelin' It",
|
||||
Slug = @"all-secret-feelinit",
|
||||
},
|
||||
},
|
||||
new RecentActivity
|
||||
new APIRecentActivity
|
||||
{
|
||||
User = dummyUser,
|
||||
Type = RecentActivityType.BeatmapPlaycount,
|
||||
Count = 1337,
|
||||
Beatmap = dummyBeatmap,
|
||||
},
|
||||
new RecentActivity
|
||||
new APIRecentActivity
|
||||
{
|
||||
User = dummyUser,
|
||||
Type = RecentActivityType.BeatmapsetApprove,
|
||||
Approval = BeatmapApproval.Qualified,
|
||||
Beatmapset = dummyBeatmap,
|
||||
},
|
||||
new RecentActivity
|
||||
new APIRecentActivity
|
||||
{
|
||||
User = dummyUser,
|
||||
Type = RecentActivityType.BeatmapsetDelete,
|
||||
Beatmapset = dummyBeatmap,
|
||||
},
|
||||
new RecentActivity
|
||||
new APIRecentActivity
|
||||
{
|
||||
User = dummyUser,
|
||||
Type = RecentActivityType.BeatmapsetRevive,
|
||||
Beatmapset = dummyBeatmap,
|
||||
},
|
||||
new RecentActivity
|
||||
new APIRecentActivity
|
||||
{
|
||||
User = dummyUser,
|
||||
Type = RecentActivityType.BeatmapsetRevive,
|
||||
Beatmapset = dummyBeatmap,
|
||||
},
|
||||
new RecentActivity
|
||||
new APIRecentActivity
|
||||
{
|
||||
User = dummyUser,
|
||||
Type = RecentActivityType.BeatmapsetUpdate,
|
||||
Beatmapset = dummyBeatmap,
|
||||
},
|
||||
new RecentActivity
|
||||
new APIRecentActivity
|
||||
{
|
||||
User = dummyUser,
|
||||
Type = RecentActivityType.BeatmapsetUpload,
|
||||
Beatmapset = dummyBeatmap,
|
||||
},
|
||||
new RecentActivity
|
||||
new APIRecentActivity
|
||||
{
|
||||
User = dummyUser,
|
||||
Type = RecentActivityType.Rank,
|
||||
@ -128,29 +129,29 @@ namespace osu.Game.Tests.Visual
|
||||
Mode = "osu!",
|
||||
Beatmap = dummyBeatmap,
|
||||
},
|
||||
new RecentActivity
|
||||
new APIRecentActivity
|
||||
{
|
||||
User = dummyUser,
|
||||
Type = RecentActivityType.RankLost,
|
||||
Mode = "osu!",
|
||||
Beatmap = dummyBeatmap,
|
||||
},
|
||||
new RecentActivity
|
||||
new APIRecentActivity
|
||||
{
|
||||
User = dummyUser,
|
||||
Type = RecentActivityType.UsernameChange,
|
||||
},
|
||||
new RecentActivity
|
||||
new APIRecentActivity
|
||||
{
|
||||
User = dummyUser,
|
||||
Type = RecentActivityType.UserSupportAgain,
|
||||
},
|
||||
new RecentActivity
|
||||
new APIRecentActivity
|
||||
{
|
||||
User = dummyUser,
|
||||
Type = RecentActivityType.UserSupportFirst,
|
||||
},
|
||||
new RecentActivity
|
||||
new APIRecentActivity
|
||||
{
|
||||
User = dummyUser,
|
||||
Type = RecentActivityType.UserSupportGift,
|
||||
|
Reference in New Issue
Block a user