mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 10:22:55 +08:00
Indentation
This commit is contained in:
parent
74ed4cf0e3
commit
1bd13a8361
@ -53,24 +53,24 @@ namespace osu.Game.Overlays.Direct
|
|||||||
|
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new OsuSpriteText
|
new OsuSpriteText
|
||||||
{
|
{
|
||||||
Margin = new MarginPadding { Top = 8, Bottom = 8 },
|
Margin = new MarginPadding { Top = 8, Bottom = 8 },
|
||||||
Origin = Anchor.BottomLeft,
|
Origin = Anchor.BottomLeft,
|
||||||
Anchor = Anchor.BottomLeft,
|
Anchor = Anchor.BottomLeft,
|
||||||
Text = (value as Enum)?.GetDescription() ?? value.ToString(),
|
Text = (value as Enum)?.GetDescription() ?? value.ToString(),
|
||||||
TextSize = 14,
|
TextSize = 14,
|
||||||
Font = @"Exo2.0-Bold",
|
Font = @"Exo2.0-Bold",
|
||||||
},
|
},
|
||||||
box = new Box
|
box = new Box
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
Height = 5,
|
Height = 5,
|
||||||
Scale = new Vector2(1f, 0f),
|
Scale = new Vector2(1f, 0f),
|
||||||
Colour = Color4.White,
|
Colour = Color4.White,
|
||||||
Origin = Anchor.BottomLeft,
|
Origin = Anchor.BottomLeft,
|
||||||
Anchor = Anchor.BottomLeft,
|
Anchor = Anchor.BottomLeft,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ namespace osu.Game.Overlays
|
|||||||
var p = new List<DirectPanel>();
|
var p = new List<DirectPanel>();
|
||||||
|
|
||||||
foreach (BeatmapSetInfo b in value)
|
foreach (BeatmapSetInfo b in value)
|
||||||
p.Add(new DirectListPanel(b));
|
p.Add(new DirectListPanel(b)); //todo: proper switching between grid/list
|
||||||
|
|
||||||
panels.Children = p;
|
panels.Children = p;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user