mirror of
https://github.com/ppy/osu.git
synced 2025-03-28 00:47:20 +08:00
Fixing errors
This commit is contained in:
parent
9c2dca8229
commit
07a24d2747
@ -41,6 +41,12 @@ namespace osu.Game.Overlays.KeyBinding
|
|||||||
AutoSizeAxes = Axes.Y;
|
AutoSizeAxes = Axes.Y;
|
||||||
Padding = new MarginPadding { Right = SettingsPanel.CONTENT_MARGINS };
|
Padding = new MarginPadding { Right = SettingsPanel.CONTENT_MARGINS };
|
||||||
|
|
||||||
|
KeyBindingRow = new KeyBindingRow(key, bindings.Where(b => ((int)b.Action).Equals((int)key)))
|
||||||
|
{
|
||||||
|
AllowMainMouseButtons = ruleset != null,
|
||||||
|
Defaults = defaults
|
||||||
|
};
|
||||||
|
|
||||||
InternalChildren = new Drawable[]
|
InternalChildren = new Drawable[]
|
||||||
{
|
{
|
||||||
new RestoreDefaultValueButton<bool>
|
new RestoreDefaultValueButton<bool>
|
||||||
@ -53,11 +59,7 @@ namespace osu.Game.Overlays.KeyBinding
|
|||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
Padding = new MarginPadding { Left = SettingsPanel.CONTENT_MARGINS },
|
Padding = new MarginPadding { Left = SettingsPanel.CONTENT_MARGINS },
|
||||||
Child = KeyBindingRow = new KeyBindingRow(key, bindings.Where(b => ((int)b.Action).Equals((int)key)))
|
Child = KeyBindingRow
|
||||||
{
|
|
||||||
AllowMainMouseButtons = ruleset != null,
|
|
||||||
Defaults = defaults
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user