mirror of
https://github.com/ppy/osu.git
synced 2026-05-18 19:10:28 +08:00
1f4cfa74dc
It's at a very simple stage for now: - Tab control is no longer recreated when friends change, counts are updated as bindables. - All async logic removed temporarily. - Sort and filtering happens in realtime without panel reload. - Display modes removed for now. Need to think about this one a bit more, and whether to retry the async path or look for a separate solution. - Real time user presence is now considered. Not considered for sorting by last visit time yet.
28 lines
896 B
C#
28 lines
896 B
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using NUnit.Framework;
|
|
using osu.Framework.Allocation;
|
|
using osu.Framework.Graphics;
|
|
using osu.Game.Overlays;
|
|
using osu.Game.Overlays.Dashboard.Friends;
|
|
|
|
namespace osu.Game.Tests.Visual.UserInterface
|
|
{
|
|
public partial class TestSceneFriendsOnlineStatusControl : OsuTestScene
|
|
{
|
|
[Cached]
|
|
private readonly OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Blue);
|
|
|
|
[SetUp]
|
|
public void SetUp() => Schedule(() => Child = new FriendOnlineStreamControl
|
|
{
|
|
Anchor = Anchor.Centre,
|
|
Origin = Anchor.Centre,
|
|
CountAll = { Value = 15 },
|
|
CountOnline = { Value = 10 },
|
|
CountOffline = { Value = 5 }
|
|
});
|
|
}
|
|
}
|