コード例 #1
0
ファイル: IWBTMGame.cs プロジェクト: EVAST9919/iwbtm
        private void load()
        {
            NotificationOverlay notifications;

            dependencies.Cache(notifications = new NotificationOverlay());

            ConfirmationOverlay confirmationOverlay;

            dependencies.Cache(confirmationOverlay = new ConfirmationOverlay());

            ScreenStack screens = new ScreenStack();

            screens.Push(new MainMenuScreen());

            Add(new BasicContextMenuContainer
            {
                RelativeSizeAxes = Axes.Both,
                Child            = new IWannaTooltipContainer
                {
                    RelativeSizeAxes = Axes.Both,
                    Children         = new Drawable[]
                    {
                        screens,
                        notifications,
                        confirmationOverlay
                    }
                }
            });
        }
コード例 #2
0
        private void ShowConfirmationOverlay(bool success)
        {
            var overlay = new ConfirmationOverlay();

            if (!success)
            {
                overlay.SetType(ConfirmationOverlay.FailureAnimation);
            }
            else
            {
                overlay.SetType(ConfirmationOverlay.OpenOnPhoneAnimation);
            }

            overlay.ShowOn(Activity);
        }