private void Start() { DryDialog.instance = this; footer = false; is_dialog = true; draggable = false; }
//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); }
//close instance of dialog if it exists. protected void close_dialog() { DryDialog.close(); ModalDialog.close(); }