mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Update usage of FlowContainer and its subclasses
This commit is contained in:
@ -86,7 +86,7 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
new FlowContainer
|
||||
{
|
||||
Padding = new MarginPadding(5),
|
||||
Direction = FlowDirections.Horizontal,
|
||||
FlowStrategy = FlowStrategies.GetHorizontalFlow(),
|
||||
AutoSizeAxes = Axes.Both,
|
||||
Anchor = Anchor.CentreLeft,
|
||||
Origin = Anchor.CentreLeft,
|
||||
@ -101,15 +101,14 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
new FlowContainer
|
||||
{
|
||||
Padding = new MarginPadding { Left = 5 },
|
||||
Direction = FlowDirections.Vertical,
|
||||
FlowStrategy = FlowStrategies.GetVerticalFlow(),
|
||||
AutoSizeAxes = Axes.Both,
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new FlowContainer
|
||||
{
|
||||
Direction = FlowDirections.Horizontal,
|
||||
FlowStrategy = FlowStrategies.GetHorizontalFlow(new Vector2(4, 0)),
|
||||
AutoSizeAxes = Axes.Both,
|
||||
Spacing = new Vector2(4, 0),
|
||||
Children = new[]
|
||||
{
|
||||
new OsuSpriteText
|
||||
|
@ -38,7 +38,7 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
},
|
||||
new FlowContainer
|
||||
{
|
||||
Direction = FlowDirections.Vertical,
|
||||
FlowStrategy = FlowStrategies.GetVerticalFlow(),
|
||||
Padding = new MarginPadding { Top = 5, Left = 18, Right = 10, Bottom = 10 },
|
||||
AutoSizeAxes = Axes.Both,
|
||||
Children = new[]
|
||||
@ -112,7 +112,7 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
new FlowContainer
|
||||
{
|
||||
Depth = -1,
|
||||
Direction = FlowDirections.Horizontal,
|
||||
FlowStrategy = FlowStrategies.GetHorizontalFlow(),
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
// This makes the gradient not be perfectly horizontal, but diagonal at a ~40<34> angle
|
||||
Shear = new Vector2(0.8f, 0),
|
||||
|
Reference in New Issue
Block a user