From efa44f00af4e09f8f0b82578a6232ad3eb144adf Mon Sep 17 00:00:00 2001 From: Rendo Date: Sat, 19 Jul 2025 23:06:29 +0500 Subject: [PATCH] tool scripts are now editor-only --- addons/pvzadventure/scripts/AdventureEditor.cs | 2 ++ addons/pvzadventure/scripts/AdventureResourceInspector.cs | 2 ++ addons/pvzadventure/scripts/FileButton.cs | 2 ++ 3 files changed, 6 insertions(+) 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