Skip to content

Commit

Permalink
Remove stub project, add manual testing option
Browse files Browse the repository at this point in the history
  • Loading branch information
Atlinx committed Dec 30, 2023
1 parent 865f087 commit 1e55741
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 36 deletions.
2 changes: 1 addition & 1 deletion GDTask.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Godot.NET.Sdk/4.0.0">
<Project Sdk="Godot.NET.Sdk/4.2.1">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<EnableDynamicLoading>true</EnableDynamicLoading>
Expand Down
33 changes: 0 additions & 33 deletions addons/GodotVisualStudioStub/StubProject.csproj

This file was deleted.

2 changes: 1 addition & 1 deletion project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 4 additions & 1 deletion tests/manual/Test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,19 @@ namespace Tests.Manual
{
public partial class Test : Node2D
{
[Export]
private bool runTestOnReady;
[Export]
private NodePath spritePath;
public Sprite2D sprite;

public override void _Ready()
{
sprite = GetNode<Sprite2D>(spritePath);
if (runTestOnReady)
Run().Forget();
}


public override void _Input(InputEvent @event)
{
if (@event.IsActionReleased("ui_select"))
Expand Down
1 change: 1 addition & 0 deletions tests/manual/Test.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

[node name="Test" type="Node2D"]
script = ExtResource("1")
runTestOnReady = true
spritePath = NodePath("Sprite2D")

[node name="Sprite2D" type="Sprite2D" parent="."]
Expand Down

0 comments on commit 1e55741

Please sign in to comment.