public override void OnInspectorGUI() { if (_viewerEntity == null) { base.OnInspectorGUI(); return; } if (!Edit) { EditorGUILayout.BeginHorizontal(); { AddRemoveChoose(); } EditorGUILayout.EndHorizontal(); _filterViewer.DrawFilter(); if (_viewerEntity.CanShow) { _viewerEntity.ShowCurrent(); } else { EditorGUILayout.LabelField("EMTY"); } DrawSaveBtn(); } else { CurrentBox.SerializedCollection = EditorGUILayout.TextArea(CurrentBox.SerializedCollection); DrawSaveBtn(); } }
protected virtual void OnGUI() { if (_oldSize != position) { _oldSize = position; _area = new AreaSizesChooseWindow(this); Repaint(); } DrawBtnsElements(_area.BtnsArea); DrawAllElements(_area.AllElemntsRect); GUILayout.BeginArea(_area.FilterRect); { FilterViewer.DrawSearch(); FilterViewer.DrawFilter(); } GUILayout.EndArea(); DrawCurrentElement(_area.MainRect); }