24 lines
461 B
C#
24 lines
461 B
C#
|
using Godot;
|
||
|
using System;
|
||
|
|
||
|
#if TOOLS
|
||
|
namespace BITKit;
|
||
|
[Tool]
|
||
|
public partial class ReferencePlugins : EditorPlugin
|
||
|
{
|
||
|
private InspectorPlugins _plugin;
|
||
|
private PackedScene _containerTemplate = GD.Load<PackedScene>("res://addons/BITPlugins/ReferenceContainer.tscn");
|
||
|
public override void _EnterTree()
|
||
|
{
|
||
|
_plugin = new InspectorPlugins();
|
||
|
AddInspectorPlugin(_plugin);
|
||
|
}
|
||
|
|
||
|
public override void _ExitTree()
|
||
|
{
|
||
|
RemoveInspectorPlugin(_plugin);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif
|