Browse Source

Properties of type address will use an address editor by default.

Kenric Nugteren 3 months ago
parent
commit
37aea4125b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      InABox.Core/Objects/Editors/Utils/EditorTypeUtils.cs

+ 2 - 0
InABox.Core/Objects/Editors/Utils/EditorTypeUtils.cs

@@ -28,6 +28,8 @@ namespace InABox.Core
                 editor = new DoubleEditor();
             else if (type.IsOrdinal())
                 editor = new IntegerEditor();
+            else if (type == typeof(Address))
+                editor = new AddressEditor(false);
             else if (typeof(IPackable).IsAssignableFrom(type))
                 editor = new NullEditor();
             else if(type.IsEnum)