add readonlies and remove unused using directives

This commit is contained in:
Jorolf 2017-03-29 16:00:29 +02:00
parent 866f72e653
commit cdb3150c56
4 changed files with 21 additions and 26 deletions

View File

@ -7,14 +7,11 @@ using osu.Framework.Testing;
using osu.Game.Database;
using osu.Game.Screens.Select;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace osu.Desktop.VisualTests.Tests
{
class TestCaseDetails : TestCase
internal class TestCaseDetails : TestCase
{
private Details details;

View File

@ -1,7 +1,6 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;

View File

@ -18,22 +18,22 @@ namespace osu.Game.Screens.Select
{
public class Details : Container
{
private SpriteText description;
private SpriteText source;
private FillFlowContainer<SpriteText> tags;
private readonly SpriteText description;
private readonly SpriteText source;
private readonly FillFlowContainer<SpriteText> tags;
private DifficultyRow circleSize;
private DifficultyRow drainRate;
private DifficultyRow overallDifficulty;
private DifficultyRow approachRate;
private DifficultyRow stars;
private readonly DifficultyRow circleSize;
private readonly DifficultyRow drainRate;
private readonly DifficultyRow overallDifficulty;
private readonly DifficultyRow approachRate;
private readonly DifficultyRow stars;
private DetailsBar ratingsBar;
private SpriteText negativeRatings;
private SpriteText positiveRatings;
private FillFlowContainer<DetailsBar> ratingsGraph;
private readonly DetailsBar ratingsBar;
private readonly SpriteText negativeRatings;
private readonly SpriteText positiveRatings;
private readonly FillFlowContainer<DetailsBar> ratingsGraph;
private FillFlowContainer<RetryAndFailBar> retryAndFailGraph;
private readonly FillFlowContainer<RetryAndFailBar> retryAndFailGraph;
private BeatmapInfo beatmap;
public BeatmapInfo Beatmap
@ -390,9 +390,9 @@ namespace osu.Game.Screens.Select
private class DifficultyRow : Container
{
private SpriteText name;
private DetailsBar bar;
private SpriteText valueText;
private readonly SpriteText name;
private readonly DetailsBar bar;
private readonly SpriteText valueText;
private float difficultyValue;
public float Value
@ -485,8 +485,8 @@ namespace osu.Game.Screens.Select
private class RetryAndFailBar : Container<DetailsBar>
{
private DetailsBar retryBar;
private DetailsBar failBar;
private readonly DetailsBar retryBar;
private readonly DetailsBar failBar;
public float RetryLength
{

View File

@ -6,14 +6,13 @@ using osu.Framework.Graphics;
using osu.Framework.Graphics.Colour;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Transforms;
namespace osu.Game.Screens.Select
{
public class DetailsBar : Container
{
private Box background;
private Box bar;
private readonly Box background;
private readonly Box bar;
private const int resize_duration = 250;