Created Users Panel

This is the Tab in the main Settings dialog to show all interaction with
saved users in the database.
This commit is contained in:
Mario Steele 2026-03-08 13:29:54 -05:00
parent f6c2def426
commit cffe7c9ef0
3 changed files with 76 additions and 0 deletions

22
UI/Controls/users.gd Normal file
View file

@ -0,0 +1,22 @@
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