mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Remove nesting of components inside overlined component
I think this makes things a bit more readable. The only weird case is the transfer of details from the component to the `OverlinedHeader`, but bindables make it not too bad.
This commit is contained in:
@ -1,20 +0,0 @@
|
||||
// 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 osu.Framework.Graphics;
|
||||
using osu.Game.Screens.Multi.Components;
|
||||
|
||||
namespace osu.Game.Screens.Multi.Match.Components
|
||||
{
|
||||
public class OverlinedChatDisplay : OverlinedDisplay
|
||||
{
|
||||
public OverlinedChatDisplay()
|
||||
: base("Chat")
|
||||
{
|
||||
Content.Add(new MatchChatDisplay
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
// 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 osu.Framework.Graphics;
|
||||
using osu.Game.Screens.Multi.Components;
|
||||
|
||||
namespace osu.Game.Screens.Multi.Match.Components
|
||||
{
|
||||
public class OverlinedLeaderboard : OverlinedDisplay
|
||||
{
|
||||
private readonly MatchLeaderboard leaderboard;
|
||||
|
||||
public OverlinedLeaderboard()
|
||||
: base("Leaderboard")
|
||||
{
|
||||
Content.Add(leaderboard = new MatchLeaderboard
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both
|
||||
});
|
||||
}
|
||||
|
||||
public void RefreshScores() => leaderboard.RefreshScores();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user