mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 08:03:52 +09:00
fix up some layouting
This commit is contained in:
@ -19,6 +19,8 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
{
|
{
|
||||||
public class ChangelogSupporterPromo : CompositeDrawable
|
public class ChangelogSupporterPromo : CompositeDrawable
|
||||||
{
|
{
|
||||||
|
private const float image_width = 164;
|
||||||
|
|
||||||
private readonly LinkFlowContainer supportLinkText;
|
private readonly LinkFlowContainer supportLinkText;
|
||||||
private readonly TextFlowContainer supportNoteText;
|
private readonly TextFlowContainer supportNoteText;
|
||||||
|
|
||||||
@ -54,12 +56,11 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Colour = Color4.Black.Opacity(0.3f),
|
Colour = Color4.Black.Opacity(0.3f),
|
||||||
},
|
},
|
||||||
new FillFlowContainer
|
new Container
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
Height = 200,
|
Height = 200,
|
||||||
Padding = new MarginPadding { Horizontal = 75 },
|
Padding = new MarginPadding { Horizontal = 75 },
|
||||||
Direction = FillDirection.Horizontal,
|
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new FillFlowContainer
|
new FillFlowContainer
|
||||||
@ -69,6 +70,7 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
Direction = FillDirection.Vertical,
|
Direction = FillDirection.Vertical,
|
||||||
Anchor = Anchor.CentreLeft,
|
Anchor = Anchor.CentreLeft,
|
||||||
Origin = Anchor.CentreLeft,
|
Origin = Anchor.CentreLeft,
|
||||||
|
Padding = new MarginPadding { Right = 50 + image_width },
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new OsuSpriteText
|
new OsuSpriteText
|
||||||
@ -82,7 +84,8 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
t.Font = t.Font.With(size: 17.5f);
|
t.Font = t.Font.With(size: 17.5f);
|
||||||
})
|
})
|
||||||
{
|
{
|
||||||
AutoSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.X,
|
||||||
|
AutoSizeAxes = Axes.Y,
|
||||||
},
|
},
|
||||||
supportNoteText = new TextFlowContainer(t =>
|
supportNoteText = new TextFlowContainer(t =>
|
||||||
{
|
{
|
||||||
@ -90,10 +93,18 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
})
|
})
|
||||||
{
|
{
|
||||||
Margin = new MarginPadding { Top = 10 },
|
Margin = new MarginPadding { Top = 10 },
|
||||||
AutoSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.X,
|
||||||
|
AutoSizeAxes = Axes.Y,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
new Container
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.Y,
|
||||||
|
Width = image_width,
|
||||||
|
Anchor = Anchor.CentreRight,
|
||||||
|
Origin = Anchor.CentreRight,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -114,11 +125,7 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
});
|
});
|
||||||
supportLinkText.AddText(" today!", fontPinkColour);
|
supportLinkText.AddText(" today!", fontPinkColour);
|
||||||
|
|
||||||
supportNoteText.AddText(new OsuSpriteText
|
supportNoteText.AddText("Not only will you help speed development, but you will also get some extra features and customisations!", fontPinkColour);
|
||||||
{
|
|
||||||
Text = ChangelogStrings.SupportText2,
|
|
||||||
Colour = colour.PinkLighter,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user