protected override void OnItemRemoving(ItemRemovingEventArgs args) { SmartCultureInfoListAdaptor smartAdaptor = args.adaptor as SmartCultureInfoListAdaptor; if (smartAdaptor == null) { return; } SmartCultureInfo info = smartAdaptor.GetCultureInfo(args.itemIndex); if (EditorUtility.DisplayDialog("Delete " + info.englishName + "?", "Are you sure you want to delete " + info.englishName + " and all of its content from the project? You cannot undo this action.", "Yes, delete it.", "Cancel")) { LanguageHandlerEditor.DeleteLanguage(info); base.OnItemRemoving(args); } else { args.Cancel = true; } }
void OnDeleteLanguageClick(SmartCultureInfo cultureInfo) { LanguageHandlerEditor.DeleteLanguage(cultureInfo); }