Skip to content
This repository has been archived by the owner on Aug 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #53 from uurha/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
uurha committed Apr 4, 2023
1 parent 7d31a2d commit bd8950d
Show file tree
Hide file tree
Showing 46 changed files with 79 additions and 499 deletions.
3 changes: 0 additions & 3 deletions Editor/EditorAddons/Drawers/Base.meta

This file was deleted.

56 changes: 0 additions & 56 deletions Editor/EditorAddons/Drawers/Base/FieldDrawer.cs

This file was deleted.

3 changes: 0 additions & 3 deletions Editor/EditorAddons/Drawers/Base/FieldDrawer.cs.meta

This file was deleted.

60 changes: 0 additions & 60 deletions Editor/EditorAddons/Drawers/Base/MultiFieldDrawer.cs

This file was deleted.

3 changes: 0 additions & 3 deletions Editor/EditorAddons/Drawers/Base/MultiFieldDrawer.cs.meta

This file was deleted.

26 changes: 0 additions & 26 deletions Editor/EditorAddons/Drawers/Base/WrapperCollection.cs

This file was deleted.

3 changes: 0 additions & 3 deletions Editor/EditorAddons/Drawers/Base/WrapperCollection.cs.meta

This file was deleted.

17 changes: 0 additions & 17 deletions Editor/EditorAddons/Drawers/Base/WrapperCollectionValue.cs

This file was deleted.

This file was deleted.

16 changes: 0 additions & 16 deletions Editor/EditorAddons/Drawers/Base/WrappersTypeCollection.cs

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions Editor/EditorAddons/Drawers/Comparers.meta

This file was deleted.

22 changes: 0 additions & 22 deletions Editor/EditorAddons/Drawers/Comparers/AssignableFromComparer.cs

This file was deleted.

This file was deleted.

9 changes: 0 additions & 9 deletions Editor/EditorAddons/Drawers/Comparers/BaseComparer.cs

This file was deleted.

3 changes: 0 additions & 3 deletions Editor/EditorAddons/Drawers/Comparers/BaseComparer.cs.meta

This file was deleted.

This file was deleted.

This file was deleted.

22 changes: 0 additions & 22 deletions Editor/EditorAddons/Drawers/Comparers/TypeComparer.cs

This file was deleted.

3 changes: 0 additions & 3 deletions Editor/EditorAddons/Drawers/Comparers/TypeComparer.cs.meta

This file was deleted.

14 changes: 7 additions & 7 deletions Editor/EditorAddons/Drawers/DrawInspector/DrawInspectorDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System;
using Better.Attributes.EditorAddons.Drawers.Base;
using Better.Attributes.EditorAddons.Drawers.Utilities;
using Better.Attributes.EditorAddons.Drawers.WrapperCollections;
using Better.Attributes.Runtime.DrawInspector;
using Better.EditorTools.Drawers.Base;
using Better.EditorTools.Helpers;
using UnityEditor;
using UnityEngine;
Expand All @@ -15,17 +15,17 @@ public class DrawInspectorDrawer : MultiFieldDrawer<DrawInspectorWrapper>
private bool _isOpen;
private DrawInspectors Collection => _wrappers as DrawInspectors;

private protected override void Deconstruct()
protected override void Deconstruct()
{
_wrappers.Deconstruct();
}

private protected override Type GetFieldType()
protected override Type GetFieldType()
{
return fieldInfo.FieldType;
}

private protected override bool PreDraw(ref Rect position, SerializedProperty property, GUIContent label)
protected override bool PreDraw(ref Rect position, SerializedProperty property, GUIContent label)
{
var fieldType = GetFieldType();
if (fieldType.IsArray || !DrawInspectorUtility.Instance.IsSupported(fieldType))
Expand Down Expand Up @@ -55,17 +55,17 @@ private protected override bool PreDraw(ref Rect position, SerializedProperty pr
return true;
}

private protected override Rect PreparePropertyRect(Rect original)
protected override Rect PreparePropertyRect(Rect original)
{
return original;
}

private protected override void PostDraw(Rect position, SerializedProperty property, GUIContent label)
protected override void PostDraw(Rect position, SerializedProperty property, GUIContent label)
{
Collection.OnGUI(property);
}

private protected override WrapperCollection<DrawInspectorWrapper> GenerateCollection()
protected override WrapperCollection<DrawInspectorWrapper> GenerateCollection()
{
return new DrawInspectors();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System;
using Better.Attributes.EditorAddons.Drawers.Utilities;
using Better.EditorTools.Utilities;
using UnityEditor;
using Object = UnityEngine.Object;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using Better.Attributes.EditorAddons.Drawers.Utilities;
using Better.EditorTools.Utilities;
using UnityEditor;
using UnityEngine;
#if UNITY_2022_1_OR_NEWER
Expand Down
Loading

0 comments on commit bd8950d

Please sign in to comment.