1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 12:33:01 +08:00

Revert OsuTabItem Text to protected, update tab count test

This commit is contained in:
hwabis 2022-03-20 21:37:02 -04:00
parent 63b6686384
commit 06136b2247
2 changed files with 4 additions and 3 deletions

View File

@ -11,6 +11,7 @@ using osu.Framework.Graphics;
using osu.Framework.Platform;
using osu.Framework.Testing;
using osu.Game.Beatmaps;
using osu.Game.Graphics.Sprites;
using osu.Game.Graphics.UserInterface;
using osu.Game.Online.Multiplayer;
using osu.Game.Online.Rooms;
@ -239,8 +240,8 @@ namespace osu.Game.Tests.Visual.Multiplayer
AddUntilStep($"Queue tab shows \"{queueTabText}\"", () =>
{
return this.ChildrenOfType<OsuTabControl<MultiplayerPlaylistDisplayMode>.OsuTabItem>()
.First()
.Text.Text.Equals(queueTabText);
.Single(t => t.Value == MultiplayerPlaylistDisplayMode.Queue)
.ChildrenOfType<OsuSpriteText>().Single().Text == queueTabText;
});
}

View File

@ -98,7 +98,7 @@ namespace osu.Game.Graphics.UserInterface
public class OsuTabItem : TabItem<T>, IHasAccentColour
{
public readonly SpriteText Text;
protected readonly SpriteText Text;
protected readonly Box Bar;
private Color4 accentColour;