new visiblecollision command

This commit is contained in:
2023-02-23 09:50:41 +01:00
parent 97465bf600
commit 6c8433a0e0
2 changed files with 7 additions and 1 deletions

View File

@@ -106,4 +106,9 @@ public partial class console : PopupPanel
textblock.AddText("Your new name is now: " + player_variables.PlayerName + "\n");
}
public void reload() => GetTree().ReloadCurrentScene();
public void visiblecollision()
{
GetTree().DebugCollisionsHint = !GetTree().DebugCollisionsHint;
textblock.AddText("Visible collision shapes and hitmarker now set to: " + GetTree().DebugCollisionsHint + "\nUse 'reload' to see changes!\n");
}
}