mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
R# fixes.
This commit is contained in:
@ -1,9 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Game.Graphics;
|
||||
@ -13,26 +8,22 @@ using osu.Game.Online.API;
|
||||
using osu.Game.Online.API.Requests;
|
||||
using osu.Game.Online.Chat;
|
||||
using osu.Game.Screens.Select.Leaderboards;
|
||||
using osu.Game.Users;
|
||||
using static osu.Game.Online.API.Requests.RecentActivity;
|
||||
|
||||
namespace osu.Game.Overlays.Profile.Sections.Recent
|
||||
{
|
||||
public class DrawableRecentActivity : DrawableProfileRow
|
||||
{
|
||||
private RecentActivity activity;
|
||||
private User user;
|
||||
private APIAccess api;
|
||||
|
||||
private string userLinkTemplate;
|
||||
private string beatmapLinkTemplate;
|
||||
private readonly RecentActivity activity;
|
||||
private readonly string userLinkTemplate;
|
||||
private readonly string beatmapLinkTemplate;
|
||||
|
||||
private LinkFlowContainer content;
|
||||
|
||||
public DrawableRecentActivity(RecentActivity activity, User user)
|
||||
public DrawableRecentActivity(RecentActivity activity)
|
||||
{
|
||||
this.activity = activity;
|
||||
this.user = user;
|
||||
|
||||
userLinkTemplate = $"[{urlToAbsolute(activity.User?.Url)} {activity.User?.Username}]";
|
||||
beatmapLinkTemplate = $"[{urlToAbsolute(activity.Beatmap?.Url)} {activity.Beatmap?.Title}]";
|
||||
|
@ -1,17 +1,12 @@
|
||||
using osu.Framework.Configuration;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Game.Online.API.Requests;
|
||||
using osu.Game.Overlays.Profile.Sections.Recent;
|
||||
using osu.Game.Users;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace osu.Game.Overlays.Profile.Sections
|
||||
namespace osu.Game.Overlays.Profile.Sections.Recent
|
||||
{
|
||||
class PaginatedRecentActivityContainer : PaginatedContainer
|
||||
internal class PaginatedRecentActivityContainer : PaginatedContainer
|
||||
{
|
||||
public PaginatedRecentActivityContainer(Bindable<User> user, string header, string missing)
|
||||
: base(user, header, missing)
|
||||
@ -40,7 +35,7 @@ namespace osu.Game.Overlays.Profile.Sections
|
||||
|
||||
foreach (RecentActivity activity in activities)
|
||||
{
|
||||
ItemsContainer.Add(new DrawableRecentActivity(activity, User));
|
||||
ItemsContainer.Add(new DrawableRecentActivity(activity));
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user