Skip to content

Commit d4ad7ca

Browse files
committed
Added support of group extending
1 parent e8098dc commit d4ad7ca

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ void ExtendInspectorEnd(ExtendableInspector inspector)
6565

6666
Allows adding controls at the end of the inspector.
6767

68+
```csharp
69+
void ExtendInspectorGroup(inspector: ExtendableInspector, string group)
70+
```
71+
72+
Allows adding controls at the beginning of a group in the property list for object.
73+
6874
```csharp
6975
void ExtendInspectorCategory(inspector: ExtendableInspector, string category)
7076
```

addons/extendable_inspector_for_cs/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ void ExtendInspectorEnd(ExtendableInspector inspector)
6565

6666
Allows adding controls at the end of the inspector.
6767

68+
```csharp
69+
void ExtendInspectorGroup(inspector: ExtendableInspector, string group)
70+
```
71+
72+
Allows adding controls at the beginning of a group in the property list for object.
73+
6874
```csharp
6975
void ExtendInspectorCategory(inspector: ExtendableInspector, string category)
7076
```

addons/extendable_inspector_for_cs/core/ExtendableInspector.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ public partial class ExtendableInspector : EditorInspectorPlugin {
88
private static string[] Methods = {
99
"ExtendInspectorBegin",
1010
"ExtendInspectorEnd",
11+
"ExtendInspectorGroup",
1112
"ExtendInspectorProperty",
1213
"ExtendInspectorCategory"
1314
};
@@ -48,5 +49,11 @@ public override bool _ParseProperty(GodotObject godotObject, Variant.Type type,
4849

4950
return false;
5051
}
52+
53+
public override void _ParseGroup(GodotObject godotObject, string group) {
54+
if (godotObject.HasMethod("ExtendInspectorGroup")) {
55+
godotObject.Call("ExtendInspectorGroup", this, group);
56+
}
57+
}
5158
}
5259
#endif

0 commit comments

Comments
 (0)