Created tab for TwitchUserInfo
Displays the TwitchUserInfo to handle showing the saved user's twitch information.
This commit is contained in:
parent
9328ba2356
commit
f6c2def426
3 changed files with 35 additions and 0 deletions
12
UI/Controls/internal_twitch_user_info.gd
Normal file
12
UI/Controls/internal_twitch_user_info.gd
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
extends PanelContainer
|
||||||
|
@onready var tui := %TwitchUserInfo
|
||||||
|
@onready var up := %UserPromo
|
||||||
|
|
||||||
|
var chatter: Chatter:
|
||||||
|
set(value):
|
||||||
|
chatter = value
|
||||||
|
if not value: return
|
||||||
|
if not tui: return
|
||||||
|
tui.populate_from_chatter(chatter)
|
||||||
|
if not up: return
|
||||||
|
up.chatter = value
|
||||||
1
UI/Controls/internal_twitch_user_info.gd.uid
Normal file
1
UI/Controls/internal_twitch_user_info.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
uid://bbyomfy4iqbq3
|
||||||
22
UI/Controls/internal_twitch_user_info.tscn
Normal file
22
UI/Controls/internal_twitch_user_info.tscn
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
[gd_scene format=3 uid="uid://d3fhwrt28r08x"]
|
||||||
|
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bk7elsy5s3equ" path="res://UI/Controls/twitch_user_info.tscn" id="1_bbob4"]
|
||||||
|
[ext_resource type="Script" uid="uid://bbyomfy4iqbq3" path="res://UI/Controls/internal_twitch_user_info.gd" id="1_l8fl7"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://cadil3rnqh61e" path="res://UI/Controls/user_promo.tscn" id="2_l8fl7"]
|
||||||
|
|
||||||
|
[node name="InternalTwitchUserInfo" type="PanelContainer" unique_id=1986869556]
|
||||||
|
script = ExtResource("1_l8fl7")
|
||||||
|
metadata/_tab_index = 0
|
||||||
|
|
||||||
|
[node name="HBoxContainer" type="HBoxContainer" parent="." unique_id=515716981]
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="TwitchUserInfo" parent="HBoxContainer" unique_id=1944732530 instance=ExtResource("1_bbob4")]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_vertical = 0
|
||||||
|
|
||||||
|
[node name="UserPromo" parent="HBoxContainer" unique_id=1364169576 instance=ExtResource("2_l8fl7")]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_vertical = 1
|
||||||
Loading…
Add table
Add a link
Reference in a new issue