1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-25 06:20:02 +08:00

Formatting

This commit is contained in:
DrabWeb
2017-03-22 08:59:44 -03:00
Unverified
parent 340ddb59cd
commit 333008e26d
3 changed files with 4 additions and 9 deletions
@@ -11,7 +11,7 @@ namespace osu.Desktop.VisualTests.Tests
{
internal class TestCaseSongProgress : TestCase
{
public override string Description => @"With real data";
public override string Description => @"With (half)real data";
private SongProgress progress;
+1 -4
View File
@@ -7,7 +7,6 @@ using osu.Game.Overlays;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Primitives;
namespace osu.Game.Screens.Play
{
@@ -15,8 +14,6 @@ namespace osu.Game.Screens.Play
{
public static readonly Vector2 HANDLE_SIZE = new Vector2(14, 25);
private Container handle;
public SongProgressBar()
{
Fill.Colour = SongProgress.FILL_COLOUR;
@@ -29,7 +26,7 @@ namespace osu.Game.Screens.Play
Alpha = 0.5f,
Depth = 1
});
FillContainer.Add(handle = new Container
FillContainer.Add(new Container
{
Origin = Anchor.BottomRight,
Anchor = Anchor.BottomRight,
+2 -4
View File
@@ -4,7 +4,6 @@
using OpenTK;
using System.Collections.Generic;
using osu.Framework.Graphics.Containers;
using System;
namespace osu.Game.Screens.Play
{
@@ -85,8 +84,7 @@ namespace osu.Game.Screens.Play
return;
}
float step = (float)values.Count / (float)ColumnCount;
float step = values.Count / ColumnCount;
for (float i = 0; i < values.Count; i += step)
{
calculatedValues.Add(values[(int)i]);
@@ -103,7 +101,7 @@ namespace osu.Game.Screens.Play
columns.Add(new SongProgressGraphColumn
{
Position = new Vector2(x + 1, 0),
State = ColumnState.Dimmed
State = ColumnState.Dimmed,
});
Add(columns[columns.Count - 1]);