tool scripts are now editor-only

This commit is contained in:
Rendo 2025-07-19 23:06:29 +05:00
commit efa44f00af
3 changed files with 6 additions and 0 deletions

View file

@ -1,5 +1,6 @@
using Godot; using Godot;
#if TOOLS
[Tool] [Tool]
public partial class AdventureEditor : MarginContainer public partial class AdventureEditor : MarginContainer
{ {
@ -61,3 +62,4 @@ public partial class AdventureEditor : MarginContainer
} }
} }
#endif

View file

@ -2,6 +2,7 @@ using Godot;
using System; using System;
using System.Globalization; using System.Globalization;
#if TOOLS
[Tool] [Tool]
public partial class AdventureResourceInspector : Node public partial class AdventureResourceInspector : Node
{ {
@ -157,3 +158,4 @@ public partial class AdventureResourceInspector : Node
return item; return item;
} }
} }
#endif

View file

@ -1,5 +1,6 @@
using Godot; using Godot;
#if TOOLS
[Tool] [Tool]
public partial class FileButton : MenuButton public partial class FileButton : MenuButton
{ {
@ -47,3 +48,4 @@ public partial class FileButton : MenuButton
} }
} }
#endif