mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 14:12:54 +08:00
add readonlies and remove unused using directives
This commit is contained in:
parent
866f72e653
commit
cdb3150c56
@ -7,14 +7,11 @@ using osu.Framework.Testing;
|
|||||||
using osu.Game.Database;
|
using osu.Game.Database;
|
||||||
using osu.Game.Screens.Select;
|
using osu.Game.Screens.Select;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace osu.Desktop.VisualTests.Tests
|
namespace osu.Desktop.VisualTests.Tests
|
||||||
{
|
{
|
||||||
class TestCaseDetails : TestCase
|
internal class TestCaseDetails : TestCase
|
||||||
{
|
{
|
||||||
private Details details;
|
private Details details;
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
// 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 System;
|
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
|
@ -18,22 +18,22 @@ namespace osu.Game.Screens.Select
|
|||||||
{
|
{
|
||||||
public class Details : Container
|
public class Details : Container
|
||||||
{
|
{
|
||||||
private SpriteText description;
|
private readonly SpriteText description;
|
||||||
private SpriteText source;
|
private readonly SpriteText source;
|
||||||
private FillFlowContainer<SpriteText> tags;
|
private readonly FillFlowContainer<SpriteText> tags;
|
||||||
|
|
||||||
private DifficultyRow circleSize;
|
private readonly DifficultyRow circleSize;
|
||||||
private DifficultyRow drainRate;
|
private readonly DifficultyRow drainRate;
|
||||||
private DifficultyRow overallDifficulty;
|
private readonly DifficultyRow overallDifficulty;
|
||||||
private DifficultyRow approachRate;
|
private readonly DifficultyRow approachRate;
|
||||||
private DifficultyRow stars;
|
private readonly DifficultyRow stars;
|
||||||
|
|
||||||
private DetailsBar ratingsBar;
|
private readonly DetailsBar ratingsBar;
|
||||||
private SpriteText negativeRatings;
|
private readonly SpriteText negativeRatings;
|
||||||
private SpriteText positiveRatings;
|
private readonly SpriteText positiveRatings;
|
||||||
private FillFlowContainer<DetailsBar> ratingsGraph;
|
private readonly FillFlowContainer<DetailsBar> ratingsGraph;
|
||||||
|
|
||||||
private FillFlowContainer<RetryAndFailBar> retryAndFailGraph;
|
private readonly FillFlowContainer<RetryAndFailBar> retryAndFailGraph;
|
||||||
|
|
||||||
private BeatmapInfo beatmap;
|
private BeatmapInfo beatmap;
|
||||||
public BeatmapInfo Beatmap
|
public BeatmapInfo Beatmap
|
||||||
@ -390,9 +390,9 @@ namespace osu.Game.Screens.Select
|
|||||||
|
|
||||||
private class DifficultyRow : Container
|
private class DifficultyRow : Container
|
||||||
{
|
{
|
||||||
private SpriteText name;
|
private readonly SpriteText name;
|
||||||
private DetailsBar bar;
|
private readonly DetailsBar bar;
|
||||||
private SpriteText valueText;
|
private readonly SpriteText valueText;
|
||||||
|
|
||||||
private float difficultyValue;
|
private float difficultyValue;
|
||||||
public float Value
|
public float Value
|
||||||
@ -485,8 +485,8 @@ namespace osu.Game.Screens.Select
|
|||||||
|
|
||||||
private class RetryAndFailBar : Container<DetailsBar>
|
private class RetryAndFailBar : Container<DetailsBar>
|
||||||
{
|
{
|
||||||
private DetailsBar retryBar;
|
private readonly DetailsBar retryBar;
|
||||||
private DetailsBar failBar;
|
private readonly DetailsBar failBar;
|
||||||
|
|
||||||
public float RetryLength
|
public float RetryLength
|
||||||
{
|
{
|
||||||
|
@ -6,14 +6,13 @@ using osu.Framework.Graphics;
|
|||||||
using osu.Framework.Graphics.Colour;
|
using osu.Framework.Graphics.Colour;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Framework.Graphics.Sprites;
|
using osu.Framework.Graphics.Sprites;
|
||||||
using osu.Framework.Graphics.Transforms;
|
|
||||||
|
|
||||||
namespace osu.Game.Screens.Select
|
namespace osu.Game.Screens.Select
|
||||||
{
|
{
|
||||||
public class DetailsBar : Container
|
public class DetailsBar : Container
|
||||||
{
|
{
|
||||||
private Box background;
|
private readonly Box background;
|
||||||
private Box bar;
|
private readonly Box bar;
|
||||||
|
|
||||||
private const int resize_duration = 250;
|
private const int resize_duration = 250;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user