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

Hide max participants box

This commit is contained in:
smoogipoo 2018-12-06 18:16:17 +09:00
parent eadbe4c470
commit 42817b98f9
2 changed files with 5 additions and 1 deletions

View File

@ -5,6 +5,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using NUnit.Framework; using NUnit.Framework;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Testing.Input; using osu.Framework.Testing.Input;
using osu.Game.Online.Multiplayer; using osu.Game.Online.Multiplayer;
using osu.Game.Screens.Multi.Components; using osu.Game.Screens.Multi.Components;
@ -38,9 +39,9 @@ namespace osu.Game.Tests.Visual
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Height = 0.75f, Height = 0.75f,
State = Visibility.Visible
}); });
AddStep(@"show", overlay.Show);
assertAll(); assertAll();
AddStep(@"set name", () => overlay.CurrentName = @"Two Testing Room"); AddStep(@"set name", () => overlay.CurrentName = @"Two Testing Room");
AddStep(@"set max", () => overlay.CurrentMaxParticipants = null); AddStep(@"set max", () => overlay.CurrentMaxParticipants = null);

View File

@ -33,6 +33,7 @@ namespace osu.Game.Screens.Multi.Components
private readonly Bindable<int?> maxParticipantsBind = new Bindable<int?>(); private readonly Bindable<int?> maxParticipantsBind = new Bindable<int?>();
private readonly Container content; private readonly Container content;
private readonly OsuSpriteText typeLabel; private readonly OsuSpriteText typeLabel;
protected readonly OsuTextBox NameField, MaxParticipantsField; protected readonly OsuTextBox NameField, MaxParticipantsField;
@ -115,6 +116,8 @@ namespace osu.Game.Screens.Multi.Components
{ {
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
TabbableContentContainer = this, TabbableContentContainer = this,
Alpha = 0.2f,
ReadOnly = true,
OnCommit = (sender, text) => apply(), OnCommit = (sender, text) => apply(),
}, },
}, },