mirror of
https://github.com/ppy/osu.git
synced 2025-02-14 06:33:17 +08:00
Adjust grid spacing to allow attributes to use more width
This commit is contained in:
parent
0c918410d0
commit
513e470b52
@ -66,9 +66,7 @@ namespace osu.Game.Screens.Edit.Timing
|
|||||||
{
|
{
|
||||||
var columns = new List<TableColumn>
|
var columns = new List<TableColumn>
|
||||||
{
|
{
|
||||||
new TableColumn(string.Empty, Anchor.Centre, new Dimension(GridSizeMode.AutoSize)),
|
new TableColumn("Time", Anchor.CentreLeft, new Dimension(GridSizeMode.Absolute, 120)),
|
||||||
new TableColumn("Time", Anchor.Centre, new Dimension(GridSizeMode.AutoSize)),
|
|
||||||
new TableColumn(),
|
|
||||||
new TableColumn("Attributes", Anchor.CentreLeft),
|
new TableColumn("Attributes", Anchor.CentreLeft),
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -77,18 +75,11 @@ namespace osu.Game.Screens.Edit.Timing
|
|||||||
|
|
||||||
private Drawable[] createContent(int index, ControlPointGroup group) => new Drawable[]
|
private Drawable[] createContent(int index, ControlPointGroup group) => new Drawable[]
|
||||||
{
|
{
|
||||||
new OsuSpriteText
|
|
||||||
{
|
|
||||||
Text = $"#{index + 1}",
|
|
||||||
Font = OsuFont.GetFont(size: TEXT_SIZE, weight: FontWeight.Bold),
|
|
||||||
Margin = new MarginPadding(10)
|
|
||||||
},
|
|
||||||
new OsuSpriteText
|
new OsuSpriteText
|
||||||
{
|
{
|
||||||
Text = group.Time.ToEditorFormattedString(),
|
Text = group.Time.ToEditorFormattedString(),
|
||||||
Font = OsuFont.GetFont(size: TEXT_SIZE, weight: FontWeight.Bold)
|
Font = OsuFont.GetFont(size: TEXT_SIZE, weight: FontWeight.Bold)
|
||||||
},
|
},
|
||||||
null,
|
|
||||||
new ControlGroupAttributes(group),
|
new ControlGroupAttributes(group),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user