2024-03-23 13:18:44 +01:00
|
|
|
extends Control
|
|
|
|
|
2024-05-08 20:45:33 +02:00
|
|
|
@onready var logger: CoreLoggerInstance = get_node("/root/CORE").logger.get_instance("Test.gd", self)
|
2024-03-23 13:18:44 +01:00
|
|
|
|
|
|
|
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) + ")"))
|
2024-03-23 16:58:50 +01:00
|
|
|
$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) + ")"))
|