mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 16:03:01 +08:00
Comply to naming conventions
This commit is contained in:
parent
435e845067
commit
536925c77a
@ -11,8 +11,8 @@ namespace osu.Game.Overlays
|
|||||||
{
|
{
|
||||||
public class DragBar : Container
|
public class DragBar : Container
|
||||||
{
|
{
|
||||||
protected Container fillContainer;
|
protected Container FillContainer;
|
||||||
protected Box fill;
|
protected Box Fill;
|
||||||
|
|
||||||
public Action<float> SeekRequested;
|
public Action<float> SeekRequested;
|
||||||
private bool isDragging;
|
private bool isDragging;
|
||||||
@ -25,7 +25,7 @@ namespace osu.Game.Overlays
|
|||||||
{
|
{
|
||||||
enabled = value;
|
enabled = value;
|
||||||
if (!enabled)
|
if (!enabled)
|
||||||
fillContainer.Width = 0;
|
FillContainer.Width = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ namespace osu.Game.Overlays
|
|||||||
|
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
fillContainer = new Container
|
FillContainer = new Container
|
||||||
{
|
{
|
||||||
Origin = Anchor.BottomLeft,
|
Origin = Anchor.BottomLeft,
|
||||||
Anchor = Anchor.BottomLeft,
|
Anchor = Anchor.BottomLeft,
|
||||||
@ -43,7 +43,7 @@ namespace osu.Game.Overlays
|
|||||||
Width = 0,
|
Width = 0,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
fill = new Box
|
Fill = new Box
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both
|
RelativeSizeAxes = Axes.Both
|
||||||
}
|
}
|
||||||
@ -56,7 +56,7 @@ namespace osu.Game.Overlays
|
|||||||
{
|
{
|
||||||
if (isDragging || !IsEnabled) return;
|
if (isDragging || !IsEnabled) return;
|
||||||
|
|
||||||
fillContainer.Width = position;
|
FillContainer.Width = position;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void seek(InputState state)
|
private void seek(InputState state)
|
||||||
@ -64,7 +64,7 @@ namespace osu.Game.Overlays
|
|||||||
if (!IsEnabled) return;
|
if (!IsEnabled) return;
|
||||||
float seekLocation = state.Mouse.Position.X / DrawWidth;
|
float seekLocation = state.Mouse.Position.X / DrawWidth;
|
||||||
SeekRequested?.Invoke(seekLocation);
|
SeekRequested?.Invoke(seekLocation);
|
||||||
fillContainer.Width = seekLocation;
|
FillContainer.Width = seekLocation;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
|
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
|
||||||
|
@ -19,7 +19,7 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
public SongProgressBar()
|
public SongProgressBar()
|
||||||
{
|
{
|
||||||
fill.Colour = SongProgress.FILL_COLOUR;
|
Fill.Colour = SongProgress.FILL_COLOUR;
|
||||||
Height = SongProgress.BAR_HEIGHT;
|
Height = SongProgress.BAR_HEIGHT;
|
||||||
|
|
||||||
Add(new Box
|
Add(new Box
|
||||||
@ -29,7 +29,7 @@ namespace osu.Game.Screens.Play
|
|||||||
Alpha = 0.5f,
|
Alpha = 0.5f,
|
||||||
Depth = 1
|
Depth = 1
|
||||||
});
|
});
|
||||||
fillContainer.Add(handle = new Container
|
FillContainer.Add(handle = new Container
|
||||||
{
|
{
|
||||||
Origin = Anchor.BottomRight,
|
Origin = Anchor.BottomRight,
|
||||||
Anchor = Anchor.BottomRight,
|
Anchor = Anchor.BottomRight,
|
||||||
|
@ -13,9 +13,9 @@ namespace osu.Game.Screens.Play
|
|||||||
public class SongProgressGraphColumn : Container
|
public class SongProgressGraphColumn : Container
|
||||||
{
|
{
|
||||||
private int rows = 11;
|
private int rows = 11;
|
||||||
private Color4 empty_colour = Color4.White.Opacity(50);
|
private readonly Color4 empty_colour = Color4.White.Opacity(50);
|
||||||
private Color4 lit_colour = SongProgress.FILL_COLOUR;
|
private readonly Color4 lit_colour = SongProgress.FILL_COLOUR;
|
||||||
private Color4 dimmed_colour = Color4.White.Opacity(175);
|
private readonly Color4 dimmed_colour = Color4.White.Opacity(175);
|
||||||
|
|
||||||
private List<Box> drawableRows = new List<Box>();
|
private List<Box> drawableRows = new List<Box>();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user