mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Remove grid usage in KeyBindingRow
This commit is contained in:
@ -82,32 +82,29 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
|||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X;
|
RelativeSizeAxes = Axes.X;
|
||||||
AutoSizeAxes = Axes.Y;
|
AutoSizeAxes = Axes.Y;
|
||||||
|
Padding = new MarginPadding { Right = SettingsPanel.CONTENT_MARGINS };
|
||||||
|
|
||||||
InternalChild = new GridContainer
|
InternalChildren = new Drawable[]
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
new Container
|
||||||
AutoSizeAxes = Axes.Y,
|
|
||||||
ColumnDimensions = new[]
|
|
||||||
{
|
{
|
||||||
new Dimension(GridSizeMode.Absolute, SettingsPanel.CONTENT_MARGINS),
|
RelativeSizeAxes = Axes.Y,
|
||||||
new Dimension(),
|
Width = SettingsPanel.CONTENT_MARGINS,
|
||||||
new Dimension(GridSizeMode.Absolute, SettingsPanel.CONTENT_MARGINS),
|
Child = new RestoreDefaultValueButton<bool>
|
||||||
},
|
{
|
||||||
RowDimensions = new[]
|
Current = isDefault,
|
||||||
{
|
Action = RestoreDefaults,
|
||||||
new Dimension(GridSizeMode.AutoSize)
|
Anchor = Anchor.Centre,
|
||||||
},
|
Origin = Anchor.Centre,
|
||||||
Content = new[]
|
}
|
||||||
{
|
},
|
||||||
new Drawable[]
|
new Container
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.X,
|
||||||
|
AutoSizeAxes = Axes.Y,
|
||||||
|
Padding = new MarginPadding { Left = SettingsPanel.CONTENT_MARGINS },
|
||||||
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new RestoreDefaultValueButton<bool>
|
|
||||||
{
|
|
||||||
Current = isDefault,
|
|
||||||
Action = RestoreDefaults,
|
|
||||||
Anchor = Anchor.Centre,
|
|
||||||
Origin = Anchor.Centre
|
|
||||||
},
|
|
||||||
content = new Container
|
content = new Container
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
@ -154,10 +151,10 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
new HoverClickSounds()
|
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
new HoverClickSounds()
|
||||||
};
|
};
|
||||||
|
|
||||||
foreach (var b in bindings)
|
foreach (var b in bindings)
|
||||||
|
Reference in New Issue
Block a user