1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 14:17:26 +08:00

Order usings, use inline out variable declaration.

This commit is contained in:
DrabWeb 2018-08-14 12:25:35 -03:00
parent 3d0b1b6009
commit 7d8c0aca72
4 changed files with 5 additions and 7 deletions

View File

@ -3,11 +3,11 @@
using NUnit.Framework;
using osu.Framework.Graphics;
using osu.Framework.Testing.Input;
using osu.Game.Graphics.UserInterface;
using osu.Game.Online.Multiplayer;
using osu.Game.Screens.Multi.Screens.Match.Settings;
using OpenTK.Input;
using osu.Framework.Testing.Input;
namespace osu.Game.Tests.Visual
{
@ -86,8 +86,7 @@ namespace osu.Game.Tests.Visual
{
get
{
int max;
if (int.TryParse(MaxParticipantsField.Text, out max))
if (int.TryParse(MaxParticipantsField.Text, out int max))
return max;
return null;

View File

@ -6,12 +6,12 @@ using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Graphics.UserInterface;
using osu.Framework.Input.States;
using osu.Game.Graphics;
using osu.Game.Online.Multiplayer;
using osu.Game.Screens.Multi.Components;
using OpenTK;
using OpenTK.Graphics;
using osu.Framework.Input.States;
namespace osu.Game.Screens.Multi.Screens.Match.Settings
{

View File

@ -6,11 +6,11 @@ using osu.Framework.Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Graphics.UserInterface;
using osu.Framework.Input.States;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
using osu.Game.Online.Multiplayer;
using OpenTK;
using osu.Framework.Input.States;
using OpenTK.Graphics;
namespace osu.Game.Screens.Multi.Screens.Match.Settings

View File

@ -184,8 +184,7 @@ namespace osu.Game.Screens.Multi.Screens.Match.Settings
room.Availability.Value = AvailabilityPicker.Current.Value;
room.Type.Value = TypePicker.Current.Value;
int max;
if (int.TryParse(MaxParticipantsField.Text, out max))
if (int.TryParse(MaxParticipantsField.Text, out int max))
room.MaxParticipants.Value = max;
else
room.MaxParticipants.Value = null;