SUI/godot/Test.gd
2024-03-23 13:18:44 +01:00

13 lines
923 B
GDScript

extends Control
@onready var logger: CoreLoggerInstance = get_node("/root/CORE").logger.get_instance("Test.gd")
func _ready() -> void:
$SuiIconButton.connect("up", func() -> void: logger.info("SuiIconButton: up()"))
$SuiIconButton.connect("down", func() -> void: logger.info("SuiIconButton: down()"))
$SuiIconButton.connect("pressed", func() -> void: logger.info("SuiIconButton: pressed()"))
$SuiIconButton.connect("toggled", func(toggled: bool) -> void: logger.info("SuiIconButton: toggled(toggled=" + str(toggled) + ")"))
$SuiTextButton.connect("up", func() -> void: logger.info("SuiTextButton: up()"))
$SuiTextButton.connect("down", func() -> void: logger.info("SuiTextButton: down()"))
$SuiTextButton.connect("pressed", func() -> void: logger.info("SuiTextButton: pressed()"))
$SuiTextButton.connect("toggled", func(toggled: bool) -> void: logger.info("SuiTextButton: toggled(toggled=" + str(toggled) + ")"))