feat: 2.3.1
This commit is contained in:
+196
-88
@@ -1,6 +1,39 @@
|
||||
[gd_scene format=3 uid="uid://cb5cbbxyxx"]
|
||||
[gd_scene format=3 uid="uid://5e1bfpagcpps"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://df7xxyyzz" path="res://scripts/ui/mailbox_panel.gd" id="1_a"]
|
||||
[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
|
||||
@@ -8,6 +41,7 @@ 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="."]
|
||||
@@ -17,7 +51,7 @@ anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0.08, 0.15, 0.22, 1)
|
||||
color = Color(0.12, 0.4, 0.9, 1)
|
||||
|
||||
[node name="Margin" type="MarginContainer" parent="."]
|
||||
layout_mode = 1
|
||||
@@ -26,45 +60,51 @@ anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 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
|
||||
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="HBox" type="HBoxContainer" parent="Margin"]
|
||||
[node name="VBox" type="VBoxContainer" parent="Margin"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 24
|
||||
theme_override_constants/separation = 20
|
||||
|
||||
[node name="LeftCol" type="VBoxContainer" parent="Margin/HBox"]
|
||||
custom_minimum_size = Vector2(300, 0)
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 12
|
||||
|
||||
[node name="HeaderHBox" type="HBoxContainer" parent="Margin/HBox/LeftCol"]
|
||||
[node name="HeaderHBox" type="HBoxContainer" parent="Margin/VBox"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Icon" type="TextureRect" parent="Margin/HBox/LeftCol/HeaderHBox"]
|
||||
custom_minimum_size = Vector2(32, 32)
|
||||
[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/HBox/LeftCol/HeaderHBox"]
|
||||
[node name="Label" type="Label" parent="Margin/VBox/HeaderHBox"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 42
|
||||
text = "MAILBOX"
|
||||
theme_override_font_sizes/font_size = 24
|
||||
|
||||
[node name="Scroll" type="ScrollContainer" parent="Margin/HBox/LeftCol"]
|
||||
[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/HBox/LeftCol/Scroll"]
|
||||
[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 = 8
|
||||
theme_override_constants/separation = 12
|
||||
|
||||
[node name="EmptyStateLbl" type="Label" parent="Margin/HBox/LeftCol/Scroll"]
|
||||
[node name="EmptyStateLbl" type="Label" parent="Margin/VBox/HBox/LeftCol/Scroll"]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
@@ -73,102 +113,170 @@ size_flags_vertical = 6
|
||||
text = "No mails found."
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="CloseBtn" type="Button" parent="Margin/HBox/LeftCol"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(100, 40)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
text = "BACK"
|
||||
|
||||
[node name="MailBtnTemplate" type="Button" parent="Margin/HBox/LeftCol"]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
custom_minimum_size = Vector2(0, 80)
|
||||
layout_mode = 2
|
||||
toggle_mode = true
|
||||
|
||||
[node name="VBox" type="VBoxContainer" parent="Margin/HBox/LeftCol/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 = 8
|
||||
theme_override_constants/margin_right = 8
|
||||
|
||||
[node name="Title" type="Label" parent="Margin/HBox/LeftCol/MailBtnTemplate/VBox"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 18
|
||||
text = "No Title"
|
||||
|
||||
[node name="HBox" type="HBoxContainer" parent="Margin/HBox/LeftCol/MailBtnTemplate/VBox"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="DateLbl" type="Label" parent="Margin/HBox/LeftCol/MailBtnTemplate/VBox/HBox"]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.745098, 0.745098, 0.745098, 1)
|
||||
theme_override_font_sizes/font_size = 12
|
||||
|
||||
[node name="Spacer" type="Control" parent="Margin/HBox/LeftCol/MailBtnTemplate/VBox/HBox"]
|
||||
[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="StatusLbl" type="Label" parent="Margin/HBox/LeftCol/MailBtnTemplate/VBox/HBox"]
|
||||
[node name="Margin" type="MarginContainer" parent="Margin/VBox/HBox/MiddleCol"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 12
|
||||
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="RightCol" type="VBoxContainer" parent="Margin/HBox"]
|
||||
[node name="VBox" type="VBoxContainer" parent="Margin/VBox/HBox/MiddleCol/Margin"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_constants/separation = 16
|
||||
|
||||
[node name="MailTitleLbl" type="Label" parent="Margin/HBox/RightCol"]
|
||||
[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 = 28
|
||||
text = "WELCOME TO TEKTONIA"
|
||||
theme_override_font_sizes/font_size = 32
|
||||
text = "Message Title"
|
||||
|
||||
[node name="Sep" type="HSeparator" parent="Margin/HBox/RightCol"]
|
||||
[node name="Sep" type="HSeparator" parent="Margin/VBox/HBox/MiddleCol/Margin/VBox"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="MailContentText" type="RichTextLabel" parent="Margin/HBox/RightCol"]
|
||||
[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="FooterHBox" type="HBoxContainer" parent="Margin/HBox/RightCol"]
|
||||
[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="SenderLbl" type="Label" parent="Margin/HBox/RightCol/FooterHBox"]
|
||||
[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
|
||||
text = "SENDER:
|
||||
TEKTON DEV TEAM"
|
||||
|
||||
[node name="DynamicRewardsContainer" type="HBoxContainer" parent="Margin/HBox/RightCol/FooterHBox"]
|
||||
[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="RewardHBoxTemplate" type="HBoxContainer" parent="Margin/HBox/RightCol/FooterHBox"]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
[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="Margin/HBox/RightCol/FooterHBox/RewardHBoxTemplate"]
|
||||
custom_minimum_size = Vector2(32, 32)
|
||||
layout_mode = 2
|
||||
[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="AmountLbl" type="Label" parent="Margin/HBox/RightCol/FooterHBox/RewardHBoxTemplate"]
|
||||
[node name="VBox" type="VBoxContainer" parent="Templates/RewardHBoxTemplate/Margin/HBox"]
|
||||
layout_mode = 2
|
||||
text = "100"
|
||||
alignment = 1
|
||||
|
||||
[node name="ActionBtn" type="Button" parent="Margin/HBox/RightCol/FooterHBox"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(120, 48)
|
||||
[node name="TypeLbl" type="Label" parent="Templates/RewardHBoxTemplate/Margin/HBox/VBox"]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(1, 0.2, 0.2, 1)
|
||||
text = "DELETE"
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user