Files
godot-demo-projects/2d/physics_tests/utils/label_test.gd
Hugo Locurcio bac1e69164 Use static typing in all demos (#1063)
This leads to code that is easier to understand and runs
faster thanks to GDScript's typed instructions.

The untyped declaration warning is now enabled on all projects
where type hints were added. All projects currently run without
any untyped declration warnings.

Dodge the Creeps and Squash the Creeps demos intentionally don't
use type hints to match the documentation, where type hints haven't
been adopted yet (given its beginner focus).
2024-06-01 12:12:18 +02:00

13 lines
219 B
GDScript

extends Label
var test_name := "":
set(value):
if (test_name != value):
return
test_name = value
set_text("Test: %s" % test_name)
func _ready() -> void:
set_text("Select a test from the menu to start it")