119 lines
4.0 KiB
Plaintext
119 lines
4.0 KiB
Plaintext
[gd_scene format=3 uid="uid://dqfriend001"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/ui/friend_row.gd" id="1_frow"]
|
|
[ext_resource type="Texture2D" path="res://assets/graphics/gui/friendlist/mc_copper.png" id="2_avatar"]
|
|
[ext_resource type="Texture2D" path="res://assets/graphics/gui/friendlist/friend_add0.png" id="3_add"]
|
|
[ext_resource type="Texture2D" path="res://assets/graphics/gui/friendlist/friend_chat.png" id="4_chat"]
|
|
[ext_resource type="Texture2D" path="res://assets/graphics/gui/friendlist/friend_block0.png.png" id="5_block"]
|
|
[ext_resource type="FontFile" uid="uid://xnjx058n4tsw" path="res://assets/fonts/Nougat-ExtraBlack.ttf" id="6_font"]
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_bg"]
|
|
bg_color = Color(0, 0, 0, 0.48)
|
|
border_width_left = 3
|
|
border_width_top = 3
|
|
border_width_right = 3
|
|
border_width_bottom = 3
|
|
border_color = Color(0, 0, 0, 1)
|
|
corner_radius_top_left = 8
|
|
corner_radius_top_right = 8
|
|
corner_radius_bottom_right = 8
|
|
corner_radius_bottom_left = 8
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_avatar_bg"]
|
|
bg_color = Color(1, 1, 1, 1)
|
|
corner_radius_top_left = 8
|
|
corner_radius_top_right = 8
|
|
corner_radius_bottom_right = 8
|
|
corner_radius_bottom_left = 8
|
|
|
|
[node name="FriendRow" type="PanelContainer"]
|
|
custom_minimum_size = Vector2(0, 80)
|
|
size_flags_horizontal = 3
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_bg")
|
|
script = ExtResource("1_frow")
|
|
|
|
[node name="Margin" type="MarginContainer" parent="."]
|
|
layout_mode = 2
|
|
theme_override_constants/margin_left = 8
|
|
theme_override_constants/margin_top = 8
|
|
theme_override_constants/margin_right = 8
|
|
theme_override_constants/margin_bottom = 8
|
|
|
|
[node name="HBox" type="HBoxContainer" parent="Margin"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 12
|
|
|
|
[node name="AvatarPanel" type="PanelContainer" parent="Margin/HBox"]
|
|
custom_minimum_size = Vector2(64, 64)
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_avatar_bg")
|
|
|
|
[node name="Margin" type="MarginContainer" parent="Margin/HBox/AvatarPanel"]
|
|
layout_mode = 2
|
|
theme_override_constants/margin_left = 2
|
|
theme_override_constants/margin_top = 2
|
|
theme_override_constants/margin_right = 2
|
|
theme_override_constants/margin_bottom = 2
|
|
|
|
[node name="Avatar" type="TextureRect" parent="Margin/HBox/AvatarPanel/Margin"]
|
|
layout_mode = 2
|
|
texture = ExtResource("2_avatar")
|
|
expand_mode = 1
|
|
|
|
[node name="VBox" type="VBoxContainer" parent="Margin/HBox"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
alignment = 1
|
|
|
|
[node name="NameLabel" type="Label" parent="Margin/HBox/VBox"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
theme_override_fonts/font = ExtResource("6_font")
|
|
theme_override_font_sizes/font_size = 20
|
|
text = "USERNAME"
|
|
|
|
[node name="StateLabel" type="Label" parent="Margin/HBox/VBox"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
theme_override_fonts/font = ExtResource("6_font")
|
|
theme_override_colors/font_color = Color(0.7, 0.7, 0.7, 1)
|
|
theme_override_font_sizes/font_size = 12
|
|
text = "LAST ONLINE: 30 mins ago."
|
|
|
|
[node name="HBoxButtons" type="HBoxContainer" parent="Margin/HBox/VBox"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 8
|
|
|
|
[node name="AcceptBtn" type="TextureButton" parent="Margin/HBox/VBox/HBoxButtons"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(16, 16)
|
|
layout_mode = 2
|
|
texture_normal = ExtResource("3_add")
|
|
ignore_texture_size = true
|
|
stretch_mode = 5
|
|
|
|
[node name="DMBtn" type="TextureButton" parent="Margin/HBox/VBox/HBoxButtons"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(16, 16)
|
|
layout_mode = 2
|
|
texture_normal = ExtResource("4_chat")
|
|
ignore_texture_size = true
|
|
stretch_mode = 5
|
|
|
|
[node name="DeclineBtn" type="TextureButton" parent="Margin/HBox/VBox/HBoxButtons"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(16, 16)
|
|
layout_mode = 2
|
|
texture_normal = ExtResource("5_block")
|
|
ignore_texture_size = true
|
|
stretch_mode = 5
|
|
|
|
[node name="RemoveBtn" type="TextureButton" parent="Margin/HBox/VBox/HBoxButtons"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(16, 16)
|
|
layout_mode = 2
|
|
texture_normal = ExtResource("5_block")
|
|
ignore_texture_size = true
|
|
stretch_mode = 5
|