public static void ExportAllSelectedExcelToPrefData() { ExportData((item, sheetName) => { ExcelReader excelReader = new ExcelReader(item, sheetName, ExcelType.Pref); Excel2PrefData.GenPref(excelReader); Excel2PrefData.GenCS(excelReader); }); }
private void ShowExportPrf() { GUIStyle headStyle = GUIHelper.MakeHeader(); GUILayout.Label("Export PrefData", headStyle); EditorGUILayout.Space(); GUILayout.BeginHorizontal(); if (GUILayout.Button("Export PrefData", GUILayout.Width(100))) { Excel2PrefData.GenPref(excelReader); } if (GUILayout.Button("Export PrefData.cs", GUILayout.Width(100))) { Excel2PrefData.GenCS(excelReader); } GUILayout.EndHorizontal(); if (GUILayout.Button("Export ALL", GUILayout.Width(100))) { Excel2PrefData.GenPref(excelReader); Excel2PrefData.GenCS(excelReader); } }