Skip to content

Commit

Permalink
Merge pull request #13 from techno-dwarf-works/feature/refactoring
Browse files Browse the repository at this point in the history
Version 0.0.4
  • Loading branch information
uurha committed Dec 1, 2024
1 parent 8ca9c54 commit 44a4547
Show file tree
Hide file tree
Showing 59 changed files with 123 additions and 363 deletions.
2 changes: 1 addition & 1 deletion Editor/Drawers/DrawInspector/DrawInspectorDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace Better.Attributes.EditorAddons.Drawers.DrawInspector
{
[CustomPropertyDrawer(typeof(DrawInspectorAttribute), true)]
public class DrawInspectorDrawer : BasePropertyDrawer<DrawInspectorHandler, DrawInspectorAttribute>
public class DrawInspectorDrawer : PropertyDrawer<DrawInspectorHandler, DrawInspectorAttribute>
{
protected override void PopulateContainer(ElementsContainer container)
{
Expand Down
4 changes: 4 additions & 0 deletions Editor/Drawers/DrawInspector/DrawInspectorHandler.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
using System;
using Better.Attributes.Runtime.DrawInspector;
using Better.Commons.EditorAddons.Drawers;
using Better.Commons.EditorAddons.Drawers.Handlers;
using Better.Commons.EditorAddons.Extensions;
using Better.Commons.EditorAddons.Utility;
using Better.Commons.Runtime.Comparers;
using Better.Commons.Runtime.Extensions;
using Better.Commons.Runtime.Utility;
using UnityEditor;
Expand All @@ -11,6 +14,7 @@
namespace Better.Attributes.EditorAddons.Drawers.DrawInspector
{
[Serializable]
[HandlerBinding(typeof(UnityEngine.Object), typeof(DrawInspectorAttribute))]
public class DrawInspectorHandler : SerializedPropertyHandler
{
private SerializedProperty _property;
Expand Down
2 changes: 1 addition & 1 deletion Editor/Drawers/Gizmo/GizmoDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
namespace Better.Attributes.EditorAddons.Drawers.Gizmo
{
[CustomPropertyDrawer(typeof(BaseGizmoAttribute), true)]
public class GizmoDrawer : BasePropertyDrawer<GizmoHandler, BaseGizmoAttribute>
public class GizmoDrawer : PropertyDrawer<GizmoHandler, BaseGizmoAttribute>
{
public const string Hide = "Hide";
public const string Show = "Show";
Expand Down
5 changes: 4 additions & 1 deletion Editor/Drawers/Gizmo/LocalHandlers/BoundsLocalHandler.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
using Better.Commons.EditorAddons.Extensions;
using Better.Attributes.Runtime.Gizmo;
using Better.Commons.EditorAddons.Drawers;
using Better.Commons.EditorAddons.Extensions;
using Better.Commons.Runtime.Utility;
using UnityEditor;
using UnityEngine;

namespace Better.Attributes.EditorAddons.Drawers.Gizmo
{
[HandlerBinding(typeof(Bounds), typeof(GizmoLocalAttribute))]
public class BoundsLocalHandler : BoundsBaseHandler
{
public override void Apply(SceneView sceneView)
Expand Down
3 changes: 3 additions & 0 deletions Editor/Drawers/Gizmo/LocalHandlers/QuaternionLocalHandler.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
using System;
using Better.Attributes.Runtime.Gizmo;
using Better.Commons.EditorAddons.Drawers;
using Better.Commons.EditorAddons.Extensions;
using Better.Commons.Runtime.Extensions;
using UnityEditor;
using UnityEngine;

namespace Better.Attributes.EditorAddons.Drawers.Gizmo
{
[HandlerBinding(typeof(Quaternion), typeof(GizmoLocalAttribute))]
public class QuaternionLocalHandler : GizmoHandler
{
private const float Size = 1.1f;
Expand Down
3 changes: 3 additions & 0 deletions Editor/Drawers/Gizmo/LocalHandlers/Vector2LocalHandler.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
using System;
using Better.Attributes.Runtime.Gizmo;
using Better.Commons.EditorAddons.Drawers;
using Better.Commons.EditorAddons.Extensions;
using Better.Commons.Runtime.Extensions;
using UnityEditor;
using UnityEngine;

namespace Better.Attributes.EditorAddons.Drawers.Gizmo
{
[HandlerBinding(typeof(Vector2), typeof(GizmoLocalAttribute))]
public class Vector2LocalHandler : GizmoHandler
{
private Vector2 _previousValue;
Expand Down
3 changes: 3 additions & 0 deletions Editor/Drawers/Gizmo/LocalHandlers/Vector3LocalHandler.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
using System;
using Better.Attributes.Runtime.Gizmo;
using Better.Commons.EditorAddons.Drawers;
using Better.Commons.EditorAddons.Extensions;
using Better.Commons.Runtime.Extensions;
using UnityEditor;
using UnityEngine;

namespace Better.Attributes.EditorAddons.Drawers.Gizmo
{
[HandlerBinding(typeof(Vector3), typeof(GizmoLocalAttribute))]
public class Vector3LocalHandler : GizmoHandler
{
private Vector3 _previousValue;
Expand Down
6 changes: 5 additions & 1 deletion Editor/Drawers/Gizmo/WorldHandlers/BoundsHandler.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
using Better.Commons.Runtime.Extensions;
using Better.Attributes.Runtime.Gizmo;
using Better.Commons.EditorAddons.Drawers;
using Better.Commons.Runtime.Extensions;
using UnityEditor;
using UnityEngine;

namespace Better.Attributes.EditorAddons.Drawers.Gizmo
{
[HandlerBinding(typeof(Bounds), typeof(GizmoAttribute))]
public class BoundsHandler : BoundsBaseHandler
{
public override void Apply(SceneView sceneView)
Expand Down
3 changes: 3 additions & 0 deletions Editor/Drawers/Gizmo/WorldHandlers/QuaternionHandler.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
using System;
using Better.Attributes.Runtime.Gizmo;
using Better.Commons.EditorAddons.Drawers;
using Better.Commons.Runtime.Extensions;
using UnityEditor;
using UnityEngine;

namespace Better.Attributes.EditorAddons.Drawers.Gizmo
{
[HandlerBinding(typeof(Quaternion), typeof(GizmoAttribute))]
public class QuaternionHandler : GizmoHandler
{
private const float Size = 1.1f;
Expand Down
3 changes: 3 additions & 0 deletions Editor/Drawers/Gizmo/WorldHandlers/Vector2Handler.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
using System;
using Better.Attributes.Runtime.Gizmo;
using Better.Commons.EditorAddons.Drawers;
using Better.Commons.Runtime.Extensions;
using UnityEditor;
using UnityEngine;

namespace Better.Attributes.EditorAddons.Drawers.Gizmo
{
[HandlerBinding(typeof(Vector2), typeof(GizmoAttribute))]
public class Vector2Handler : GizmoHandler
{
private Vector2 _previousValue;
Expand Down
3 changes: 3 additions & 0 deletions Editor/Drawers/Gizmo/WorldHandlers/Vector3Handler.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
using System;
using Better.Attributes.Runtime.Gizmo;
using Better.Commons.EditorAddons.Drawers;
using Better.Commons.Runtime.Extensions;
using UnityEditor;
using UnityEngine;

namespace Better.Attributes.EditorAddons.Drawers.Gizmo
{
[HandlerBinding(typeof(Vector3), typeof(GizmoAttribute))]
public class Vector3Handler : GizmoHandler
{
private Vector3 _previousValue;
Expand Down
3 changes: 0 additions & 3 deletions Editor/Drawers/HandlerMaps.meta

This file was deleted.

35 changes: 0 additions & 35 deletions Editor/Drawers/HandlerMaps/DrawInspectorTypeHandlerBinder.cs

This file was deleted.

This file was deleted.

50 changes: 0 additions & 50 deletions Editor/Drawers/HandlerMaps/GizmoTypeHandlerBinder.cs

This file was deleted.

3 changes: 0 additions & 3 deletions Editor/Drawers/HandlerMaps/GizmoTypeHandlerBinder.cs.meta

This file was deleted.

41 changes: 0 additions & 41 deletions Editor/Drawers/HandlerMaps/ManipulateTypeHandlerBinder.cs

This file was deleted.

This file was deleted.

67 changes: 0 additions & 67 deletions Editor/Drawers/HandlerMaps/MiscBinder.cs

This file was deleted.

3 changes: 0 additions & 3 deletions Editor/Drawers/HandlerMaps/MiscBinder.cs.meta

This file was deleted.

Loading

0 comments on commit 44a4547

Please sign in to comment.