Exemplo n.º 1
0
        public void ShowDialog(string title, string message)
        {
            _handshakeState = HandshakeLoopState.DisconnectedOnHold;

            GeneralDialogData dialogData = new GeneralDialogData();

            dialogData.title          = title;
            dialogData.message        = message;
            dialogData.hasCloseButton = false;
            dialogData.buttons.Add(new DialogButtonData()
            {
                caption        = "Retry",
                dispatchAction = () => {
                    _handshakeState = HandshakeLoopState.TryHandshake;
                }
            });
            dialogData.buttons.Add(new DialogButtonData()
            {
                caption        = "Continue without handshake",
                dispatchAction = () => {
                    _handshakeState = HandshakeLoopState.CanContinue;
                }
            });

            _dialogService.Show(dialogData);
        }
        public IModalHandle Show(GeneralDialogData data, bool isOverriding = true, bool isCloseOnOutSideTap = false, bool stacking = false)
        {
            // IModalHandle handle = new AppModalHandle<GeneralDialogData>(prefab,data);
            IModalHandle handle = new AppModalHandle <GeneralDialogData>("GamePopups/GenericDialog", data);

            handle.MaskType = isCloseOnOutSideTap?IModalMaskType.CloseOnOutSideTap : IModalMaskType.Masked;
            return(_modalityManager.Add(handle, isOverriding, stacking));
        }
Exemplo n.º 3
0
        public void ShowNoConnectionPopup(string title, string message)
        {
            GeneralDialogData data          = new GeneralDialogData();
            string            dismissButton = "Ok";

            data.title          = title;
            data.hasCloseButton = false;
            data.message        = message;
            data.buttons.Add(new BasicDialogButtonData("OK"));
            genericDialog.Show(data);
        }
Exemplo n.º 4
0
        public void ShowErrorDialog(string title, string message, string button)
        {
            GeneralDialogData data = new GeneralDialogData();

            data.title          = title;
            data.message        = message;
            data.hasCloseButton = false;
            if (button.Length > 0)
            {
                data.buttons.Add(new DialogButtonData(button, ResumeConnectionAfterHold));
            }
            _generalDialog.Show(data);
        }
Exemplo n.º 5
0
        public void ShowAppRequestDialog()
        {
            GeneralDialogData data;

            data = new GeneralDialogData();
            if (actionSucceed)
            {
                data.title   = "Notification";
                data.message = result;
            }
            else
            {
                data.title   = "Notification";
                data.message = result;
            }

            generalDialog.Show(data);             //added support for generic stacked modals
        }
 public IModalHandle Show(GeneralDialogData data, bool isOverriding = true, bool isCloseOnOutSideTap = false, bool stacking = false)
 {
     return(null);
 }