mirror of
https://github.com/ppy/osu
synced 2024-12-16 03:45:46 +00:00
Order usings, use inline out variable declaration.
This commit is contained in:
parent
3d0b1b6009
commit
7d8c0aca72
@ -3,11 +3,11 @@
|
|||||||
|
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
|
using osu.Framework.Testing.Input;
|
||||||
using osu.Game.Graphics.UserInterface;
|
using osu.Game.Graphics.UserInterface;
|
||||||
using osu.Game.Online.Multiplayer;
|
using osu.Game.Online.Multiplayer;
|
||||||
using osu.Game.Screens.Multi.Screens.Match.Settings;
|
using osu.Game.Screens.Multi.Screens.Match.Settings;
|
||||||
using OpenTK.Input;
|
using OpenTK.Input;
|
||||||
using osu.Framework.Testing.Input;
|
|
||||||
|
|
||||||
namespace osu.Game.Tests.Visual
|
namespace osu.Game.Tests.Visual
|
||||||
{
|
{
|
||||||
@ -86,8 +86,7 @@ namespace osu.Game.Tests.Visual
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
int max;
|
if (int.TryParse(MaxParticipantsField.Text, out int max))
|
||||||
if (int.TryParse(MaxParticipantsField.Text, out max))
|
|
||||||
return max;
|
return max;
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
@ -6,12 +6,12 @@ using osu.Framework.Graphics;
|
|||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Framework.Graphics.Shapes;
|
using osu.Framework.Graphics.Shapes;
|
||||||
using osu.Framework.Graphics.UserInterface;
|
using osu.Framework.Graphics.UserInterface;
|
||||||
|
using osu.Framework.Input.States;
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
using osu.Game.Online.Multiplayer;
|
using osu.Game.Online.Multiplayer;
|
||||||
using osu.Game.Screens.Multi.Components;
|
using osu.Game.Screens.Multi.Components;
|
||||||
using OpenTK;
|
using OpenTK;
|
||||||
using OpenTK.Graphics;
|
using OpenTK.Graphics;
|
||||||
using osu.Framework.Input.States;
|
|
||||||
|
|
||||||
namespace osu.Game.Screens.Multi.Screens.Match.Settings
|
namespace osu.Game.Screens.Multi.Screens.Match.Settings
|
||||||
{
|
{
|
||||||
|
@ -6,11 +6,11 @@ using osu.Framework.Extensions;
|
|||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Shapes;
|
using osu.Framework.Graphics.Shapes;
|
||||||
using osu.Framework.Graphics.UserInterface;
|
using osu.Framework.Graphics.UserInterface;
|
||||||
|
using osu.Framework.Input.States;
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
using osu.Game.Graphics.Sprites;
|
using osu.Game.Graphics.Sprites;
|
||||||
using osu.Game.Online.Multiplayer;
|
using osu.Game.Online.Multiplayer;
|
||||||
using OpenTK;
|
using OpenTK;
|
||||||
using osu.Framework.Input.States;
|
|
||||||
using OpenTK.Graphics;
|
using OpenTK.Graphics;
|
||||||
|
|
||||||
namespace osu.Game.Screens.Multi.Screens.Match.Settings
|
namespace osu.Game.Screens.Multi.Screens.Match.Settings
|
||||||
|
@ -184,8 +184,7 @@ namespace osu.Game.Screens.Multi.Screens.Match.Settings
|
|||||||
room.Availability.Value = AvailabilityPicker.Current.Value;
|
room.Availability.Value = AvailabilityPicker.Current.Value;
|
||||||
room.Type.Value = TypePicker.Current.Value;
|
room.Type.Value = TypePicker.Current.Value;
|
||||||
|
|
||||||
int max;
|
if (int.TryParse(MaxParticipantsField.Text, out int max))
|
||||||
if (int.TryParse(MaxParticipantsField.Text, out max))
|
|
||||||
room.MaxParticipants.Value = max;
|
room.MaxParticipants.Value = max;
|
||||||
else
|
else
|
||||||
room.MaxParticipants.Value = null;
|
room.MaxParticipants.Value = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user