Files
tekton/scenes/ui/mailbox_panel.tscn
T
2026-05-12 17:55:53 +08:00

283 lines
8.7 KiB
Plaintext

[gd_scene format=3 uid="uid://5e1bfpagcpps"]
[ext_resource type="Script" uid="uid://b5fema68m6b2s" path="res://scripts/ui/mailbox_panel.gd" id="1_a"]
[ext_resource type="Theme" uid="uid://cxab3xxy00" path="res://assets/themes/GUI_Tekton.tres" id="1_wi8mn"]
[ext_resource type="Texture2D" uid="uid://dfmailbox" path="res://assets/graphics/gui/mainmenu/mailbox.png" id="tex_mailbox"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_middle"]
bg_color = Color(0.02, 0.04, 0.08, 1)
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 = 12
corner_radius_top_right = 12
corner_radius_bottom_right = 12
corner_radius_bottom_left = 12
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_slot"]
bg_color = Color(0.1, 0.3, 0.6, 0.6)
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_mailbtn"]
bg_color = Color(0.2, 0.4, 0.6, 1)
border_width_left = 2
border_width_top = 2
border_width_right = 2
border_width_bottom = 2
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
[node name="MailboxPanel" type="Panel"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("1_wi8mn")
script = ExtResource("1_a")
[node name="BG" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.12, 0.4, 0.9, 1)
[node name="Margin" type="MarginContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 40
theme_override_constants/margin_top = 40
theme_override_constants/margin_right = 40
theme_override_constants/margin_bottom = 40
[node name="VBox" type="VBoxContainer" parent="Margin"]
layout_mode = 2
theme_override_constants/separation = 20
[node name="HeaderHBox" type="HBoxContainer" parent="Margin/VBox"]
layout_mode = 2
[node name="Icon" type="TextureRect" parent="Margin/VBox/HeaderHBox"]
custom_minimum_size = Vector2(48, 48)
layout_mode = 2
texture = ExtResource("tex_mailbox")
expand_mode = 1
stretch_mode = 5
[node name="Label" type="Label" parent="Margin/VBox/HeaderHBox"]
layout_mode = 2
theme_override_font_sizes/font_size = 42
text = "MAILBOX"
[node name="HBox" type="HBoxContainer" parent="Margin/VBox"]
layout_mode = 2
size_flags_vertical = 3
theme_override_constants/separation = 20
[node name="LeftCol" type="VBoxContainer" parent="Margin/VBox/HBox"]
custom_minimum_size = Vector2(350, 0)
layout_mode = 2
theme_override_constants/separation = 12
[node name="Scroll" type="ScrollContainer" parent="Margin/VBox/HBox/LeftCol"]
layout_mode = 2
size_flags_vertical = 3
[node name="MailListVBox" type="VBoxContainer" parent="Margin/VBox/HBox/LeftCol/Scroll"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
theme_override_constants/separation = 12
[node name="EmptyStateLbl" type="Label" parent="Margin/VBox/HBox/LeftCol/Scroll"]
unique_name_in_owner = true
visible = false
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 6
text = "No mails found."
horizontal_alignment = 1
[node name="MiddleCol" type="PanelContainer" parent="Margin/VBox/HBox"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/panel = SubResource("StyleBoxFlat_middle")
[node name="Margin" type="MarginContainer" parent="Margin/VBox/HBox/MiddleCol"]
layout_mode = 2
theme_override_constants/margin_left = 24
theme_override_constants/margin_top = 24
theme_override_constants/margin_right = 24
theme_override_constants/margin_bottom = 24
[node name="VBox" type="VBoxContainer" parent="Margin/VBox/HBox/MiddleCol/Margin"]
layout_mode = 2
theme_override_constants/separation = 16
[node name="MailTitleLbl" type="Label" parent="Margin/VBox/HBox/MiddleCol/Margin/VBox"]
unique_name_in_owner = true
layout_mode = 2
theme_override_font_sizes/font_size = 32
text = "Message Title"
[node name="Sep" type="HSeparator" parent="Margin/VBox/HBox/MiddleCol/Margin/VBox"]
layout_mode = 2
[node name="MailContentText" type="RichTextLabel" parent="Margin/VBox/HBox/MiddleCol/Margin/VBox"]
unique_name_in_owner = true
layout_mode = 2
size_flags_vertical = 3
theme_override_font_sizes/normal_font_size = 18
text = "Lorem ipsum..."
[node name="RightCol" type="VBoxContainer" parent="Margin/VBox/HBox"]
custom_minimum_size = Vector2(250, 0)
layout_mode = 2
theme_override_constants/separation = 16
[node name="DynamicRewardsContainer" type="VBoxContainer" parent="Margin/VBox/HBox/RightCol"]
unique_name_in_owner = true
layout_mode = 2
theme_override_constants/separation = 16
[node name="FooterHBox" type="HBoxContainer" parent="Margin/VBox"]
layout_mode = 2
[node name="CloseBtn" type="Button" parent="Margin/VBox/FooterHBox"]
unique_name_in_owner = true
custom_minimum_size = Vector2(120, 50)
layout_mode = 2
theme_override_colors/font_color = Color(1, 1, 1, 1)
text = "< BACK"
[node name="ReadAllBtn" type="Button" parent="Margin/VBox/FooterHBox"]
unique_name_in_owner = true
custom_minimum_size = Vector2(160, 50)
layout_mode = 2
text = "READ ALL"
[node name="Spacer" type="Control" parent="Margin/VBox/FooterHBox"]
layout_mode = 2
size_flags_horizontal = 3
[node name="ActionBtn" type="Button" parent="Margin/VBox/FooterHBox"]
unique_name_in_owner = true
custom_minimum_size = Vector2(180, 50)
layout_mode = 2
theme_override_colors/font_color = Color(1, 1, 1, 1)
text = "DELETE"
[node name="Templates" type="Control" parent="."]
visible = false
layout_mode = 1
anchors_preset = 0
[node name="MailBtnTemplate" type="Button" parent="Templates"]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 100)
layout_mode = 0
toggle_mode = true
theme_override_styles/normal = SubResource("StyleBoxFlat_mailbtn")
[node name="Margin" type="MarginContainer" parent="Templates/MailBtnTemplate"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 12
theme_override_constants/margin_top = 12
theme_override_constants/margin_right = 12
theme_override_constants/margin_bottom = 12
[node name="VBox" type="VBoxContainer" parent="Templates/MailBtnTemplate/Margin"]
layout_mode = 2
[node name="Title" type="Label" parent="Templates/MailBtnTemplate/Margin/VBox"]
layout_mode = 2
theme_override_font_sizes/font_size = 22
text = "Message Title"
text_overrun_behavior = 3
[node name="Spacer" type="Control" parent="Templates/MailBtnTemplate/Margin/VBox"]
layout_mode = 2
size_flags_vertical = 3
[node name="HBox" type="HBoxContainer" parent="Templates/MailBtnTemplate/Margin/VBox"]
layout_mode = 2
[node name="DateLbl" type="Label" parent="Templates/MailBtnTemplate/Margin/VBox/HBox"]
layout_mode = 2
theme_override_colors/font_color = Color(0.9, 0.9, 0.9, 1)
theme_override_font_sizes/font_size = 14
[node name="Spacer" type="Control" parent="Templates/MailBtnTemplate/Margin/VBox/HBox"]
layout_mode = 2
size_flags_horizontal = 3
[node name="StatusLbl" type="Label" parent="Templates/MailBtnTemplate/Margin/VBox/HBox"]
layout_mode = 2
theme_override_font_sizes/font_size = 14
[node name="RewardHBoxTemplate" type="PanelContainer" parent="Templates"]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 80)
layout_mode = 0
theme_override_styles/panel = SubResource("StyleBoxFlat_slot")
[node name="Margin" type="MarginContainer" parent="Templates/RewardHBoxTemplate"]
layout_mode = 2
theme_override_constants/margin_left = 12
theme_override_constants/margin_top = 12
theme_override_constants/margin_right = 12
theme_override_constants/margin_bottom = 12
[node name="HBox" type="HBoxContainer" parent="Templates/RewardHBoxTemplate/Margin"]
layout_mode = 2
theme_override_constants/separation = 12
[node name="IconBg" type="ColorRect" parent="Templates/RewardHBoxTemplate/Margin/HBox"]
custom_minimum_size = Vector2(56, 56)
layout_mode = 2
color = Color(0, 0, 0, 1)
[node name="Icon" type="TextureRect" parent="Templates/RewardHBoxTemplate/Margin/HBox/IconBg"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
expand_mode = 1
stretch_mode = 5
[node name="VBox" type="VBoxContainer" parent="Templates/RewardHBoxTemplate/Margin/HBox"]
layout_mode = 2
alignment = 1
[node name="TypeLbl" type="Label" parent="Templates/RewardHBoxTemplate/Margin/HBox/VBox"]
layout_mode = 2
theme_override_font_sizes/font_size = 12
text = "ITEM NAME"
[node name="AmountLbl" type="Label" parent="Templates/RewardHBoxTemplate/Margin/HBox/VBox"]
layout_mode = 2
theme_override_font_sizes/font_size = 16
text = "x00000"