Clean Up Code

This commit is contained in:
John Neijzen
2017-06-07 19:53:37 +08:00
parent f52f8326dd
commit 9b0e1c26a3
9 changed files with 39 additions and 33 deletions

View File

@ -82,7 +82,11 @@ namespace osu.Game.Screens.Tournament
private ScrollState _scrollState;
private ScrollState scrollState
{
get { return _scrollState; }
get
{
return _scrollState;
}
set
{
if (_scrollState == value)
@ -261,7 +265,7 @@ namespace osu.Game.Screens.Tournament
else
{
c.MoveToX(pos, 100);
c.FadeTo(1.0f - Math.Abs(pos - DrawWidth / 2f) / (DrawWidth / 2.5f), 100);
c.FadeTo(1.0f - (Math.Abs(pos - (DrawWidth / 2f)) / (DrawWidth / 2.5f)), 100);
}
pos += ScrollingTeam.WIDTH;
@ -328,7 +332,11 @@ namespace osu.Game.Screens.Tournament
private bool selected;
public bool Selected
{
get { return selected; }
get
{
return selected;
}
set
{
selected = value;