Advertisement
Saxy_Guy

Create and show dialog

Jan 29th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.56 KB | None | 0 0
  1. //  Create the dialog (Doesn't have to be Alert)
  2.         DialogAlert dialog = DialogManager.CreateAlert();
  3.  
  4.         //  Set the animator of the dialog (DialogAnimatorSlideFromRight is the other class you made)
  5.         dialog.dialogAnimator = new DialogAnimatorSlideFromRight(1f);
  6.  
  7.         //  Initialize the dialog (This sets its info up) (Arguments may vary if it's not DialogAlert)
  8.         dialog.Initialize("Dialog Body", () => ToastManager.Show("OK button pressed"), "OK", "Dialog Title", null, null, null);
  9.  
  10.         //  Show the dialog
  11.         dialog.Show();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement