public static void ShowBox(MessageBoxParam param) { if (currentMessageBox_ != null) { currentMessageBox_.ShowBox(param); } }
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(); }
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); }
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); }
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); }
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); }
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_) { } }
public static void ShowBox(Frame.MessageBoxParam param) { GameFrame.UIs.Instance.Get <MessageBoxView>().Open(param); }
public void ShowBox(MessageBoxParam param) { this.param_ = param; this.UpdateStates(); this.ShowWindow(false); }
public void Open(Frame.MessageBoxParam param) { this.param_ = param; this.UpdateStates(); this.ShowWindow(false); }