Added Offline details to Live panel. When user has an Offline Image, we load the image to display in the Stream Preview, otherwise we do a Generic Twitch Logo, with text saying the Stream is Offline.
127 lines
4.4 KiB
Text
127 lines
4.4 KiB
Text
[gd_scene format=3 uid="uid://bipoye4ww4ua6"]
|
|
|
|
[ext_resource type="Script" uid="uid://cdtfvedghei5f" path="res://UI/Panels/User/internal_user_live.gd" id="1_rl2q8"]
|
|
[ext_resource type="Texture2D" uid="uid://b3372gsnwqsyn" path="res://assets/bootstrap/twitch.svg" id="1_sw5jj"]
|
|
[ext_resource type="Texture2D" uid="uid://bvmx86tvio46h" path="res://assets/bootstrap/twitch_large.svg" id="2_lcbo3"]
|
|
[ext_resource type="Texture2D" uid="uid://bu2juj2beyws7" path="res://assets/twitch_user_profile_pic.png" id="2_rl2q8"]
|
|
|
|
[sub_resource type="LabelSettings" id="LabelSettings_2ohcs"]
|
|
font_size = 72
|
|
|
|
[node name="InternalUserLive" type="PanelContainer" unique_id=17956466]
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
script = ExtResource("1_rl2q8")
|
|
metadata/_tab_index = 1
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="." unique_id=1170164100]
|
|
layout_mode = 2
|
|
|
|
[node name="StreamTitle" type="Button" parent="VBoxContainer" unique_id=1072998029]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer" unique_id=12650367]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
|
|
[node name="StreamThumbnail" type="TextureRect" parent="VBoxContainer/HBoxContainer" unique_id=641456832]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
expand_mode = 1
|
|
stretch_mode = 5
|
|
|
|
[node name="OfflineThumbnail" type="TextureRect" parent="VBoxContainer/HBoxContainer" unique_id=924088665]
|
|
unique_name_in_owner = true
|
|
self_modulate = Color(0.827451, 0.42745098, 1, 0.30588236)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
texture = ExtResource("2_lcbo3")
|
|
expand_mode = 1
|
|
stretch_mode = 5
|
|
|
|
[node name="NoThumbText" type="Label" parent="VBoxContainer/HBoxContainer/OfflineThumbnail" unique_id=1187072643]
|
|
unique_name_in_owner = true
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -20.0
|
|
offset_top = -11.5
|
|
offset_right = 20.0
|
|
offset_bottom = 11.5
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
text = "Stream Offline"
|
|
label_settings = SubResource("LabelSettings_2ohcs")
|
|
|
|
[node name="UserChat" type="PanelContainer" parent="VBoxContainer/HBoxContainer" unique_id=1609959534]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
layout_mode = 2
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/HBoxContainer/UserChat" unique_id=471477121]
|
|
custom_minimum_size = Vector2(300, 0)
|
|
layout_mode = 2
|
|
|
|
[node name="Chat" type="PanelContainer" parent="VBoxContainer/HBoxContainer/UserChat/VBoxContainer" unique_id=2018394431]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
|
|
[node name="ScrollContainer" type="ScrollContainer" parent="VBoxContainer/HBoxContainer/UserChat/VBoxContainer/Chat" unique_id=1349693918]
|
|
layout_mode = 2
|
|
|
|
[node name="ChatHistory" type="VBoxContainer" parent="VBoxContainer/HBoxContainer/UserChat/VBoxContainer/Chat/ScrollContainer" unique_id=1839863005]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
|
|
[node name="Message" type="LineEdit" parent="VBoxContainer/HBoxContainer/UserChat/VBoxContainer" unique_id=1978478528]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
placeholder_text = "chat"
|
|
|
|
[node name="PanelContainer" type="PanelContainer" parent="VBoxContainer" unique_id=1134033714]
|
|
layout_mode = 2
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/PanelContainer" unique_id=411231899]
|
|
layout_mode = 2
|
|
|
|
[node name="RaidCurrentUser" type="Button" parent="VBoxContainer/PanelContainer/HBoxContainer" unique_id=288716491]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(250, 0)
|
|
layout_mode = 2
|
|
text = "Raid!"
|
|
icon = ExtResource("1_sw5jj")
|
|
expand_icon = true
|
|
|
|
[node name="ChatLiveSteramer" type="LineEdit" parent="VBoxContainer/PanelContainer/HBoxContainer" unique_id=789542500]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="StreamTime" type="Label" parent="VBoxContainer/PanelContainer/HBoxContainer" unique_id=969178063]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "00:15:42"
|
|
|
|
[node name="Icon" type="TextureRect" parent="VBoxContainer/PanelContainer/HBoxContainer" unique_id=521936560]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(24, 24)
|
|
layout_mode = 2
|
|
texture = ExtResource("2_rl2q8")
|
|
expand_mode = 1
|
|
stretch_mode = 5
|
|
|
|
[node name="StreamViewerCount" type="Label" parent="VBoxContainer/PanelContainer/HBoxContainer" unique_id=20195332]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "15"
|