/// <inheritdoc /> /// <summary> /// </summary> public sealed override void CreateContent() { CreateGameInterface = new CreateGameInterface(this) { Parent = this, Alignment = Alignment.MidLeft }; CreateGameInterface.X = -CreateGameInterface.Width; CreateGameInterface.MoveToX(0, Easing.OutQuint, 600); }
/// <summary> /// Closes the dialog. /// </summary> public void Close() { if (IsClosing) { return; } IsClosing = true; CreateGameInterface.Animations.Clear(); CreateGameInterface.MoveToX(-CreateGameInterface.Width - 2, Easing.OutQuint, 400); Alpha = 0f; ThreadScheduler.RunAfter(() => DialogManager.Dismiss(this), 450); }