GDScript: Rework GDScriptUtilityFunctions macros

This commit is contained in:
Danil Alexeev 2024-10-25 17:45:37 +03:00
parent 6732a0fd86
commit 4dc568856a
No known key found for this signature in database
GPG key ID: 124453E157DA8DC7
4 changed files with 194 additions and 317 deletions

View file

@ -0,0 +1,12 @@
func test():
const COLOR = Color8(255, 0.0, false)
var false_value := false
@warning_ignore("narrowing_conversion")
var color = Color8(255, 0.0, false_value)
print(var_to_str(COLOR))
print(var_to_str(color))
var string := "Node"
var string_name := &"Node"
print(type_exists(string))
print(type_exists(string_name))

View file

@ -0,0 +1,5 @@
GDTEST_OK
Color(1, 0, 0, 1)
Color(1, 0, 0, 1)
true
true