mirror of
https://github.com/ppy/osu.git
synced 2025-01-08 02:03:51 +08:00
Initial pass of map pool screen design update
This commit is contained in:
parent
aed52179f0
commit
2981730442
@ -27,7 +27,7 @@ namespace osu.Game.Tournament.Components
|
|||||||
private readonly string mods;
|
private readonly string mods;
|
||||||
|
|
||||||
private const float horizontal_padding = 10;
|
private const float horizontal_padding = 10;
|
||||||
private const float vertical_padding = 5;
|
private const float vertical_padding = 10;
|
||||||
|
|
||||||
public const float HEIGHT = 50;
|
public const float HEIGHT = 50;
|
||||||
|
|
||||||
@ -50,8 +50,6 @@ namespace osu.Game.Tournament.Components
|
|||||||
currentMatch.BindValueChanged(matchChanged);
|
currentMatch.BindValueChanged(matchChanged);
|
||||||
currentMatch.BindTo(ladder.CurrentMatch);
|
currentMatch.BindTo(ladder.CurrentMatch);
|
||||||
|
|
||||||
CornerRadius = HEIGHT / 2;
|
|
||||||
CornerExponent = 2;
|
|
||||||
Masking = true;
|
Masking = true;
|
||||||
|
|
||||||
AddRangeInternal(new Drawable[]
|
AddRangeInternal(new Drawable[]
|
||||||
@ -70,16 +68,12 @@ namespace osu.Game.Tournament.Components
|
|||||||
new FillFlowContainer
|
new FillFlowContainer
|
||||||
{
|
{
|
||||||
AutoSizeAxes = Axes.Both,
|
AutoSizeAxes = Axes.Both,
|
||||||
Anchor = Anchor.TopCentre,
|
|
||||||
Origin = Anchor.TopCentre,
|
|
||||||
Padding = new MarginPadding(vertical_padding),
|
Padding = new MarginPadding(vertical_padding),
|
||||||
Direction = FillDirection.Vertical,
|
Direction = FillDirection.Vertical,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new TournamentSpriteText
|
new TournamentSpriteText
|
||||||
{
|
{
|
||||||
Anchor = Anchor.TopCentre,
|
|
||||||
Origin = Anchor.TopCentre,
|
|
||||||
Text = new LocalisedString((
|
Text = new LocalisedString((
|
||||||
$"{Beatmap.Metadata.ArtistUnicode ?? Beatmap.Metadata.Artist} - {Beatmap.Metadata.TitleUnicode ?? Beatmap.Metadata.Title}",
|
$"{Beatmap.Metadata.ArtistUnicode ?? Beatmap.Metadata.Artist} - {Beatmap.Metadata.TitleUnicode ?? Beatmap.Metadata.Title}",
|
||||||
$"{Beatmap.Metadata.Artist} - {Beatmap.Metadata.Title}")),
|
$"{Beatmap.Metadata.Artist} - {Beatmap.Metadata.Title}")),
|
||||||
@ -88,9 +82,6 @@ namespace osu.Game.Tournament.Components
|
|||||||
new FillFlowContainer
|
new FillFlowContainer
|
||||||
{
|
{
|
||||||
AutoSizeAxes = Axes.Both,
|
AutoSizeAxes = Axes.Both,
|
||||||
Anchor = Anchor.TopCentre,
|
|
||||||
Origin = Anchor.TopCentre,
|
|
||||||
Padding = new MarginPadding(vertical_padding),
|
|
||||||
Direction = FillDirection.Horizontal,
|
Direction = FillDirection.Horizontal,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
@ -170,16 +161,7 @@ namespace osu.Game.Tournament.Components
|
|||||||
|
|
||||||
BorderThickness = 6;
|
BorderThickness = 6;
|
||||||
|
|
||||||
switch (found.Team)
|
BorderColour = TournamentGame.GetTeamColour(found.Team);
|
||||||
{
|
|
||||||
case TeamColour.Red:
|
|
||||||
BorderColour = Color4.Red;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case TeamColour.Blue:
|
|
||||||
BorderColour = Color4.Blue;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (found.Type)
|
switch (found.Type)
|
||||||
{
|
{
|
||||||
|
@ -42,6 +42,11 @@ namespace osu.Game.Tournament.Screens.MapPool
|
|||||||
{
|
{
|
||||||
InternalChildren = new Drawable[]
|
InternalChildren = new Drawable[]
|
||||||
{
|
{
|
||||||
|
new TourneyVideo("gameplay")
|
||||||
|
{
|
||||||
|
Loop = true,
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
},
|
||||||
new MatchHeader(),
|
new MatchHeader(),
|
||||||
mapFlows = new FillFlowContainer<FillFlowContainer<TournamentBeatmapPanel>>
|
mapFlows = new FillFlowContainer<FillFlowContainer<TournamentBeatmapPanel>>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user