mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Merge branch 'master' of https://github.com/ppy/osu into tourney-asset-refactor
This commit is contained in:
26
osu.Game.Tournament/Components/IPCErrorDialog.cs
Normal file
26
osu.Game.Tournament/Components/IPCErrorDialog.cs
Normal file
@ -0,0 +1,26 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using osu.Framework.Graphics.Sprites;
|
||||
using osu.Game.Overlays.Dialog;
|
||||
|
||||
namespace osu.Game.Tournament.Components
|
||||
{
|
||||
public class IPCErrorDialog : PopupDialog
|
||||
{
|
||||
public IPCErrorDialog(string headerText, string bodyText)
|
||||
{
|
||||
Icon = FontAwesome.Regular.SadTear;
|
||||
HeaderText = headerText;
|
||||
BodyText = bodyText;
|
||||
Buttons = new PopupDialogButton[]
|
||||
{
|
||||
new PopupDialogOkButton
|
||||
{
|
||||
Text = @"Alright.",
|
||||
Action = () => Expire()
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
@ -77,6 +77,8 @@ namespace osu.Game.Tournament.Components
|
||||
flow = new FillFlowContainer
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
// Todo: This is a hack for https://github.com/ppy/osu-framework/issues/3617 since this container is at the very edge of the screen and potentially initially masked away.
|
||||
Height = 1,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
LayoutDuration = 500,
|
||||
LayoutEasing = Easing.OutQuint,
|
||||
|
Reference in New Issue
Block a user