StreamOverlay/UI/Controls/user_entry.tscn
Mario Steele 9bbc1111d8 Updated UserEntry
Added theme type variations for UserEntry.
Added custom minimum size for User button, ensure that Text Overrun
behavior is set to use ellipses when to much text is set for the button.
Added Tooltip texts for Shoutout, Promote, Refresh Twitch Data, Raid and
Delete from database.
Added connection of ButtonMenu being pressed to toggle menu options.
Added support function to update all tooltips to include the Streamer's
Display name.
2026-03-09 03:08:01 -05:00

147 lines
5.2 KiB
Text

[gd_scene format=3 uid="uid://c3hb5od24tfr3"]
[ext_resource type="Texture2D" uid="uid://bu2juj2beyws7" path="res://UI/assets/twitch_user_profile_pic.png" id="1_8xi1h"]
[ext_resource type="Theme" uid="uid://dh11pgqmtpeig" path="res://UI/assets/main_theme.tres" id="1_r4556"]
[ext_resource type="Script" uid="uid://ldua0xcjjws4" path="res://UI/Controls/user_entry.gd" id="1_xsfty"]
[ext_resource type="PackedScene" uid="uid://cbr5aed24dvty" path="res://UI/Controls/loading_simple.tscn" id="3_mi6bx"]
[ext_resource type="Texture2D" uid="uid://ed2yvxs0b8sv" path="res://UI/assets/bootstrap/megaphone-fill.png" id="3_sck47"]
[ext_resource type="Texture2D" uid="uid://eybcntflwjpx" path="res://UI/assets/bootstrap/megaphone.svg" id="4_0jtnn"]
[ext_resource type="Texture2D" uid="uid://bb2asei1pibev" path="res://UI/assets/bootstrap/arrow-repeat.png" id="5_xsfty"]
[ext_resource type="Texture2D" uid="uid://b3372gsnwqsyn" path="res://UI/assets/bootstrap/twitch.svg" id="6_mi6bx"]
[ext_resource type="Texture2D" uid="uid://d1qh7e8vpfm1p" path="res://UI/assets/font_awesome/ellipsis.svg" id="7_k1oax"]
[ext_resource type="Texture2D" uid="uid://echc7jyluqi0" path="res://UI/assets/bootstrap/trash.png" id="9_k1oax"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ddi2y"]
content_margin_left = 4.0
content_margin_top = 4.0
content_margin_right = 4.0
content_margin_bottom = 4.0
bg_color = Color(0.101960786, 0.101960786, 0.101960786, 1)
corner_radius_top_left = 3
corner_radius_top_right = 3
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3
corner_detail = 5
[node name="UserEntry" type="PanelContainer" unique_id=1215925059]
offset_right = 40.0
offset_bottom = 40.0
theme_type_variation = &"Entry"
script = ExtResource("1_xsfty")
[node name="HBoxContainer" type="HBoxContainer" parent="." unique_id=582266053]
layout_mode = 2
[node name="AvatarImg" type="TextureRect" parent="HBoxContainer" unique_id=1364124968]
unique_name_in_owner = true
custom_minimum_size = Vector2(48, 48)
layout_mode = 2
texture = ExtResource("1_8xi1h")
expand_mode = 1
stretch_mode = 5
[node name="LoadingSimple" parent="HBoxContainer/AvatarImg" unique_id=814067408 instance=ExtResource("3_mi6bx")]
unique_name_in_owner = true
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="OpenSteram" type="Button" parent="HBoxContainer/AvatarImg" unique_id=118186600]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("1_r4556")
theme_type_variation = &"BlankButton"
[node name="User" type="Button" parent="HBoxContainer" unique_id=565524419]
unique_name_in_owner = true
custom_minimum_size = Vector2(130, 0)
layout_mode = 2
size_flags_horizontal = 3
text = "Falinere"
text_overrun_behavior = 3
[node name="LiveStatus" type="ColorRect" parent="HBoxContainer/User" unique_id=1459190091]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
color = Color(0.3647059, 1, 0.44313726, 0.3764706)
[node name="Shoutout" type="Button" parent="HBoxContainer" unique_id=85236405]
unique_name_in_owner = true
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
tooltip_text = "Shoutout %s"
icon = ExtResource("3_sck47")
icon_alignment = 1
expand_icon = true
[node name="Toggle" type="PanelContainer" parent="HBoxContainer" unique_id=174111778]
unique_name_in_owner = true
layout_mode = 2
[node name="Menu" type="HBoxContainer" parent="HBoxContainer/Toggle" unique_id=1481656507]
unique_name_in_owner = true
layout_mode = 2
[node name="Promote" type="Button" parent="HBoxContainer/Toggle/Menu" unique_id=2137206096]
unique_name_in_owner = true
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
tooltip_text = "Promote %s"
icon = ExtResource("4_0jtnn")
icon_alignment = 1
expand_icon = true
[node name="Refresh" type="Button" parent="HBoxContainer/Toggle/Menu" unique_id=1938170984]
unique_name_in_owner = true
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
tooltip_text = "Refresh %s Twitch Data"
icon = ExtResource("5_xsfty")
icon_alignment = 1
expand_icon = true
[node name="Raid" type="Button" parent="HBoxContainer/Toggle/Menu" unique_id=527951722]
unique_name_in_owner = true
modulate = Color(0.6392157, 0.38431373, 0.84313726, 1)
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
tooltip_text = "Raid %s channel"
icon = ExtResource("6_mi6bx")
icon_alignment = 1
expand_icon = true
[node name="Delete" type="Button" parent="HBoxContainer/Toggle/Menu" unique_id=596657869]
unique_name_in_owner = true
modulate = Color(1, 0, 0, 1)
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
tooltip_text = "Delete %s from Chatter Database"
icon = ExtResource("9_k1oax")
icon_alignment = 1
expand_icon = true
[node name="ButtonMenu" type="Button" parent="HBoxContainer/Toggle" unique_id=887606573]
unique_name_in_owner = true
layout_mode = 2
theme_override_styles/normal = SubResource("StyleBoxFlat_ddi2y")
icon = ExtResource("7_k1oax")
icon_alignment = 1
expand_icon = true
[node name="ScreenNotifer" type="VisibleOnScreenNotifier2D" parent="." unique_id=1597669003]
unique_name_in_owner = true