Пример #1
0
 private void Start()
 {
     DryDialog.instance = this;
     footer             = false;
     is_dialog          = true;
     draggable          = false;
 }
Пример #2
0
        //opens a dialog window which is populated by the lambda statement passed to show_dialog ie:
        //show_dialog((d) => {
        //  GUILayout.Label("hello I'm a dialog");
        //})
        //The dialog instance is returned by show_dialog, and it's also passed into the lambda.
        protected DryDialog show_dialog(DialogContent content)
        {
            DryDialog dialog = gameObject.AddOrGetComponent <DryDialog>();

            dialog.content = content;
            dialog.skin    = this.skin;
            return(dialog);
        }
Пример #3
0
 //close instance of dialog if it exists.
 protected void close_dialog()
 {
     DryDialog.close();
     ModalDialog.close();
 }