Split out the base design of sheared overlay into its own abstract class

This will allow for reuse with the first-run overlay.
This commit is contained in:
Dean Herbert
2022-04-20 15:05:07 +09:00
parent 27d4982a79
commit 8d31b0bc01
3 changed files with 165 additions and 76 deletions

View File

@ -21,6 +21,8 @@ namespace osu.Game.Graphics.UserInterface
{
public class PopupScreenTitle : CompositeDrawable
{
public const float HEIGHT = main_area_height + 2 * corner_radius;
public LocalisableString Title
{
set => titleSpriteText.Text = value;
@ -67,7 +69,7 @@ namespace osu.Game.Graphics.UserInterface
underlayContainer = new Container
{
RelativeSizeAxes = Axes.X,
Height = main_area_height + 2 * corner_radius,
Height = HEIGHT,
CornerRadius = corner_radius,
Masking = true,
BorderThickness = 2,