Tidying code.

This commit is contained in:
Dean Herbert 2017-03-03 20:08:32 +09:00
parent 41cefd1cb3
commit ca73b77a9a
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -1,24 +1,19 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using OpenTK;
using osu.Framework.Allocation;
using osu.Framework.Caching;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Textures;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using osu.Framework.Allocation;
using System.Threading.Tasks; using osu.Framework.Graphics;
using osu.Framework.Input;
using osu.Framework.Graphics.Transforms;
using osu.Framework.Timing;
using osu.Framework.Threading;
using OpenTK.Graphics;
using osu.Framework.Graphics.Colour; using osu.Framework.Graphics.Colour;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Textures;
using osu.Framework.Graphics.Transforms;
using osu.Framework.Threading;
using OpenTK;
using OpenTK.Graphics;
namespace osu.Game.Screens.Tournament namespace osu.Game.Screens.Tournament
{ {
@ -31,8 +26,8 @@ namespace osu.Game.Screens.Tournament
private Container tracker; private Container tracker;
private float speed = 0f; private float speed;
private int expiredCount = 0; private int expiredCount;
private float offset; private float offset;
private float timeOffset; private float timeOffset;
@ -48,7 +43,7 @@ namespace osu.Game.Screens.Tournament
Children = new Drawable[] Children = new Drawable[]
{ {
tracker = new Container() tracker = new Container
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,
@ -61,7 +56,7 @@ namespace osu.Game.Screens.Tournament
Children = new[] Children = new[]
{ {
new Box() new Box
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.BottomCentre, Origin = Anchor.BottomCentre,
@ -69,7 +64,7 @@ namespace osu.Game.Screens.Tournament
ColourInfo = ColourInfo.GradientVertical(Color4.Transparent, Color4.White) ColourInfo = ColourInfo.GradientVertical(Color4.Transparent, Color4.White)
}, },
new Box() new Box
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.TopCentre, Origin = Anchor.TopCentre,
@ -358,12 +353,12 @@ namespace osu.Game.Screens.Tournament
Children = new Drawable[] Children = new Drawable[]
{ {
outline = new Box() outline = new Box
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Alpha = 0 Alpha = 0
}, },
flagSprite = new Sprite() flagSprite = new Sprite
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,