2023-10-05 10:50:26 +00:00
|
|
|
extends Node
|
|
|
|
|
2023-12-19 17:56:30 +00:00
|
|
|
const Utils = preload("../../utils.notest.gd")
|
2021-04-19 18:50:52 +00:00
|
|
|
|
2023-12-19 17:56:30 +00:00
|
|
|
@export var test_weak_int = 1
|
|
|
|
@export var test_hard_int: int = 2
|
|
|
|
@export_storage var test_storage_untyped
|
|
|
|
@export_storage var test_storage_weak_int = 3 # Property info still `Variant`, unlike `@export`.
|
|
|
|
@export_storage var test_storage_hard_int: int = 4
|
|
|
|
@export_range(0, 100) var test_range = 100
|
|
|
|
@export_range(0, 100, 1) var test_range_step = 101
|
|
|
|
@export_range(0, 100, 1, "or_greater") var test_range_step_or_greater = 102
|
|
|
|
@export var test_color: Color
|
|
|
|
@export_color_no_alpha var test_color_no_alpha: Color
|
|
|
|
@export_node_path("Sprite2D", "Sprite3D", "Control", "Node") var test_node_path := ^"hello"
|
|
|
|
@export var test_node: Node
|
|
|
|
@export var test_node_array: Array[Node]
|
2021-04-19 18:50:52 +00:00
|
|
|
|
|
|
|
func test():
|
2023-12-19 17:56:30 +00:00
|
|
|
for property in get_property_list():
|
|
|
|
if str(property.name).begins_with("test_"):
|
|
|
|
Utils.print_property_extended_info(property, self)
|