diff --git a/GDTask.csproj b/GDTask.csproj index c09c73c..48368a0 100644 --- a/GDTask.csproj +++ b/GDTask.csproj @@ -1,4 +1,4 @@ - + net6.0 true diff --git a/addons/GodotVisualStudioStub/StubProject.csproj b/addons/GodotVisualStudioStub/StubProject.csproj deleted file mode 100644 index 2553dbe..0000000 --- a/addons/GodotVisualStudioStub/StubProject.csproj +++ /dev/null @@ -1,33 +0,0 @@ - - - - - Debug - AnyCPU - {B83A5A30-7D9A-4BCC-BB56-2974A2AAE767} - Library - StubProj - StubProj - v4.7.2 - 512 - true - true - {8F3E2DF0-C35C-4265-82FC-BEA011F4A7ED};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - - False - - - - \ No newline at end of file diff --git a/project.godot b/project.godot index 2a69b95..86c0ec2 100644 --- a/project.godot +++ b/project.godot @@ -24,7 +24,7 @@ Display=8 config/name="GDTask" run/main_scene="res://tests/manual/Test.tscn" -config/features=PackedStringArray("4.0", "C#") +config/features=PackedStringArray("4.2", "C#") boot_splash/bg_color=Color(0, 0, 0, 1) boot_splash/image="res://bootsplash.png" config/icon="res://icon.png" diff --git a/tests/manual/Test.cs b/tests/manual/Test.cs index 923c24d..d2171c0 100644 --- a/tests/manual/Test.cs +++ b/tests/manual/Test.cs @@ -7,6 +7,8 @@ namespace Tests.Manual { public partial class Test : Node2D { + [Export] + private bool runTestOnReady; [Export] private NodePath spritePath; public Sprite2D sprite; @@ -14,9 +16,10 @@ public partial class Test : Node2D public override void _Ready() { sprite = GetNode(spritePath); + if (runTestOnReady) + Run().Forget(); } - public override void _Input(InputEvent @event) { if (@event.IsActionReleased("ui_select")) diff --git a/tests/manual/Test.tscn b/tests/manual/Test.tscn index ea67b9e..da6327e 100644 --- a/tests/manual/Test.tscn +++ b/tests/manual/Test.tscn @@ -5,6 +5,7 @@ [node name="Test" type="Node2D"] script = ExtResource("1") +runTestOnReady = true spritePath = NodePath("Sprite2D") [node name="Sprite2D" type="Sprite2D" parent="."]