Пример #1
0
 public static void ShowBox(MessageBoxParam param)
 {
     if (currentMessageBox_ != null)
     {
         currentMessageBox_.ShowBox(param);
     }
 }
Пример #2
0
 public void ShowBox(Frame.MessageBoxParam param)
 {
     this.param_    = param;
     this.tip_.text = param.content;
     this.ok_.GetComponentInChildren <Text>(true).text =
         string.IsNullOrEmpty(param.rightButtonText) ? Frame.FrameOption.Texts.confirm : param.rightButtonText;
     this.cancel_.GetComponentInChildren <Text>(true).text =
         string.IsNullOrEmpty(param.leftButtonText) ? Frame.FrameOption.Texts.cancel : param.leftButtonText;
     this.Show();
 }
Пример #3
0
        protected override void OnWait()
        {
            MessageBoxParam param = new MessageBoxParam();

            param.rightButtonText     = FrameOption.Texts.retry;
            param.leftButtonText      = FrameOption.Texts.goToSetting;
            param.content             = FrameOption.Texts.netWarning;
            param.leftButtonCallback  = (args) => Application.Quit();
            param.rightButtonCallback = (args) => state_ = ProduceState.Retry;
            Executer.ShowBox(param);
        }
Пример #4
0
        protected override void OnWait()
        {
            MessageBoxParam param = new MessageBoxParam();

            param.rightButtonText     = FrameOption.Texts.retry;
            param.leftButtonText      = FrameOption.Texts.exit;
            param.content             = FrameOption.Texts.updateResourceError;
            param.leftButtonCallback  = (args) => Application.Quit();
            param.rightButtonCallback = (args) => state_ = ProduceState.Retry;
            Executer.ShowBox(param);
        }
Пример #5
0
        protected override void OnWait()
        {
            MessageBoxParam param = new MessageBoxParam();

            param.rightButtonText     = FrameOption.Texts.goToDownload;
            param.leftButtonText      = FrameOption.Texts.exit;
            param.content             = FrameOption.Texts.downloadPackage;
            param.leftButtonCallback  = (args) => Application.Quit();
            param.rightButtonCallback = (args) => Application.OpenURL(appSite);
            Executer.ShowBox(param);
        }
Пример #6
0
        protected override void OnWait()
        {
            MessageBoxParam param = new MessageBoxParam();

            param.rightButtonText    = FrameOption.Texts.goToOpenWifi;
            param.leftButtonText     = FrameOption.Texts.continueDownload;
            param.content            = FrameOption.Texts.downloadWarning;
            param.leftButtonCallback = (args) => {
                FrameOption.Base.allowDownloadWithoutWifi = true;
                state_ = ProduceState.NoError;
            };

            param.rightButtonCallback = (args) => Application.Quit();
            Executer.ShowBox(param);
        }
Пример #7
0
 protected override void OnCommand(EventContext context)
 {
     if (context.sender == this.window.bm1_)
     {
         UIs.Instance.Show <EarthView>(false);
     }
     else if (context.sender == this.window.bm2_)
     {
         var param = new Frame.MessageBoxParam();
         param.content = "FFFFFFFFFFFFFFFFFFFFFFFF";
         Message.ShowBox(param);
     }
     else if (context.sender == this.window.bm3_)
     {
         UIs.Instance.Show <BagView>(false);
     }
     else if (context.sender == this.window.bm4_)
     {
         UIs.Instance.Show <ChatView>(false);
     }
     else if (context.sender == this.window.bm5_)
     {
     }
 }
Пример #8
0
 public static void ShowBox(Frame.MessageBoxParam param)
 {
     GameFrame.UIs.Instance.Get <MessageBoxView>().Open(param);
 }
Пример #9
0
 public void ShowBox(MessageBoxParam param)
 {
     this.param_ = param;
     this.UpdateStates();
     this.ShowWindow(false);
 }
Пример #10
0
 public void Open(Frame.MessageBoxParam param)
 {
     this.param_ = param;
     this.UpdateStates();
     this.ShowWindow(false);
 }