mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 13:22:55 +08:00
Hide max participants box
This commit is contained in:
parent
eadbe4c470
commit
42817b98f9
@ -5,6 +5,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using NUnit.Framework;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Testing.Input;
|
||||
using osu.Game.Online.Multiplayer;
|
||||
using osu.Game.Screens.Multi.Components;
|
||||
@ -38,9 +39,9 @@ namespace osu.Game.Tests.Visual
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Height = 0.75f,
|
||||
State = Visibility.Visible
|
||||
});
|
||||
|
||||
AddStep(@"show", overlay.Show);
|
||||
assertAll();
|
||||
AddStep(@"set name", () => overlay.CurrentName = @"Two Testing Room");
|
||||
AddStep(@"set max", () => overlay.CurrentMaxParticipants = null);
|
||||
|
@ -33,6 +33,7 @@ namespace osu.Game.Screens.Multi.Components
|
||||
private readonly Bindable<int?> maxParticipantsBind = new Bindable<int?>();
|
||||
|
||||
private readonly Container content;
|
||||
|
||||
private readonly OsuSpriteText typeLabel;
|
||||
|
||||
protected readonly OsuTextBox NameField, MaxParticipantsField;
|
||||
@ -115,6 +116,8 @@ namespace osu.Game.Screens.Multi.Components
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
TabbableContentContainer = this,
|
||||
Alpha = 0.2f,
|
||||
ReadOnly = true,
|
||||
OnCommit = (sender, text) => apply(),
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user