// Token: 0x06004629 RID: 17961 RVA: 0x0017D794 File Offset: 0x0017BB94 private bool SignInNotify(DialogInputHelper helper) { if (!helper.Validate()) { return(false); } string message = "Sign in.\nUsername: "******"\nPassword: <hidden>"; Notify.Template("NotifyTemplateAutoHide").Show(message, new float?(3f), null, null, null, null); return(true); }
// using dialog bool SignInNotify(DialogInputHelper helper) { // return true if Username.text and Password not empty, otherwise false if (!helper.Validate()) { // return false to keep dialog open return(false); } // using dialog input var message = "Sign in.\nUsername: "******"\nPassword: <hidden>"; notifyAutoHide.Template().Show(message, customHideDelay: 3f); // return true to close dialog return(true); }
// Token: 0x06004628 RID: 17960 RVA: 0x0017D6CC File Offset: 0x0017BACC public void ShowDialogSignIn() { Dialog dialog = Dialog.Template("DialogSignInTemplateSample"); DialogInputHelper helper = dialog.GetComponent <DialogInputHelper>(); helper.Refresh(); Dialog dialog2 = dialog; string title = "Sign into your Account"; DialogActions dialogActions = new DialogActions(); dialogActions.Add("Sign in", () => this.SignInNotify(helper)); DialogActions dialogActions2 = dialogActions; string key = "Cancel"; if (UITestSamples.f__mg6 == null) { UITestSamples.f__mg6 = new Func <bool>(Dialog.Close); } dialogActions2.Add(key, UITestSamples.f__mg6); dialogActions = dialogActions; Color?modalColor = new Color?(new Color(0f, 0f, 0f, 0.8f)); dialog2.Show(title, null, dialogActions, "Sign in", null, null, true, null, modalColor, null); }
// using dialog bool SignInNotify(DialogInputHelper helper) { // return true if Username.text and Password not empty, otherwise false if (!helper.Validate()) { // return false to keep dialog open return false; } // using dialog input var message = "Sign in.\nUsername: "******"\nPassword: <hidden>"; Notify.Template("NotifyTemplateAutoHide").Show(message, customHideDelay: 3f); // return true to close dialog return true; }