2026-03-08 13:29:54 -05:00
|
|
|
extends PanelContainer
|
|
|
|
|
|
|
|
|
|
@onready var itu := %InternalTwitchUserInfo
|
|
|
|
|
@onready var iul := %InternalUserLive
|
|
|
|
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
|
|
|
func _ready() -> void:
|
|
|
|
|
%SearchTwitchUser.users_updated.connect(%UserList.update_list)
|
|
|
|
|
%UserList.populate_list()
|
|
|
|
|
%UserList.user_selected.connect(_handle_user_selected)
|
2026-03-09 03:05:26 -05:00
|
|
|
%Clear.pressed.connect(_handle_clear)
|
2026-03-08 13:29:54 -05:00
|
|
|
|
|
|
|
|
func _handle_user_selected(user: Chatter) -> void:
|
|
|
|
|
itu.chatter = user
|
|
|
|
|
iul.chatter = user
|
|
|
|
|
%Tabs.current_tab = 0
|
2026-03-09 03:05:26 -05:00
|
|
|
%SearchTwitchUser.hide()
|
|
|
|
|
|
|
|
|
|
func _handle_clear() -> void:
|
|
|
|
|
itu.chatter = null
|
|
|
|
|
iul.chatter = null
|
|
|
|
|
%SearchTwitchUser.show()
|