diff --git a/addons/pvzadventure/scripts/AdventureEditor.cs b/addons/pvzadventure/scripts/AdventureEditor.cs index 5c0fddf..196799c 100644 --- a/addons/pvzadventure/scripts/AdventureEditor.cs +++ b/addons/pvzadventure/scripts/AdventureEditor.cs @@ -1,5 +1,6 @@ using Godot; +#if TOOLS [Tool] public partial class AdventureEditor : MarginContainer { @@ -61,3 +62,4 @@ public partial class AdventureEditor : MarginContainer } } +#endif \ No newline at end of file diff --git a/addons/pvzadventure/scripts/AdventureResourceInspector.cs b/addons/pvzadventure/scripts/AdventureResourceInspector.cs index 974f70d..53532b8 100644 --- a/addons/pvzadventure/scripts/AdventureResourceInspector.cs +++ b/addons/pvzadventure/scripts/AdventureResourceInspector.cs @@ -2,6 +2,7 @@ using Godot; using System; using System.Globalization; +#if TOOLS [Tool] public partial class AdventureResourceInspector : Node { @@ -157,3 +158,4 @@ public partial class AdventureResourceInspector : Node return item; } } +#endif \ No newline at end of file diff --git a/addons/pvzadventure/scripts/FileButton.cs b/addons/pvzadventure/scripts/FileButton.cs index 156aa90..050aa05 100644 --- a/addons/pvzadventure/scripts/FileButton.cs +++ b/addons/pvzadventure/scripts/FileButton.cs @@ -1,5 +1,6 @@ using Godot; +#if TOOLS [Tool] public partial class FileButton : MenuButton { @@ -47,3 +48,4 @@ public partial class FileButton : MenuButton } } +#endif \ No newline at end of file