void UpdateUIDialog(FieldMenu fieldMenu) { if (fieldMenu != null) { actions = fieldMenu.Buttons; dialog.buttonLister = new ActionLister(fieldMenu.Buttons); dialog.SetTitle(fieldMenu.Name); } }