private void DrawMenus() { EditorGUILayout.BeginHorizontal(); EditorDrawHelper.DrawButton("Add", delegate { _currentEeWorksheet.RowCount++; SetWorkbook(_currentEeWorkbook); }); EditorDrawHelper.DrawButton("Save", delegate { var path = Application.dataPath + "/Test/Test3.xlsx"; _currentEeWorkbook.SaveToFile(path); }); EditorGUILayout.EndHorizontal(); }
private void OnGUI() { EEGUIStyle.Ensure(); try { if (_currentEeWorkbook != null) { EditorDrawHelper.DrawTableTab(_currentEeWorkbook, ref selectIndex); _currentEeWorksheet = _currentEeWorkbook.sheets[selectIndex]; EditorDrawHelper.DrawTable(_currentEeWorksheet); DrawMenus(); } } catch (Exception e) { EELog.LogError(e.ToString()); } }