SUI/godot/Test.gd
2024-05-08 20:45:33 +02:00

16 lines
1.3 KiB
GDScript

extends Control
@onready var logger: CoreLoggerInstance = get_node("/root/CORE").logger.get_instance("Test.gd", self)
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) + ")"))
$SuiText.connect("meta_clicked", func(meta: Variant) -> void: logger.info("SuiText: meta_clicked(meta=" + str(meta) + ")"))
$SuiText.connect("meta_hover_started", func(meta: Variant) -> void: logger.info("SuiText: meta_hover_started(meta=" + str(meta) + ")"))
$SuiText.connect("meta_hover_ended", func(meta: Variant) -> void: logger.info("SuiText: meta_hover_ended(meta=" + str(meta) + ")"))