StreamOverlay/UI/Controls/users.gd
Mario Steele cffe7c9ef0 Created Users Panel
This is the Tab in the main Settings dialog to show all interaction with
saved users in the database.
2026-03-08 13:29:54 -05:00

22 lines
647 B
GDScript

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)
set_tab_names()
func set_tab_names() -> void:
for pnl in %Tabs.get_children():
var title := pnl.name.trim_prefix("Internal").capitalize()
%Tabs.set_tab_title(pnl.get_index(), title)
func _handle_user_selected(user: Chatter) -> void:
itu.chatter = user
iul.chatter = user
%Tabs.current_tab = 0