[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://bm0d40n1rwvvs" 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_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 [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 [node name="MailboxPanel" type="Panel" unique_id=1279323201] 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="." unique_id=2137631459] 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="." unique_id=1361806928] 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" unique_id=1690554709] layout_mode = 2 theme_override_constants/separation = 20 [node name="HeaderHBox" type="HBoxContainer" parent="Margin/VBox" unique_id=2059547048] layout_mode = 2 [node name="Icon" type="TextureRect" parent="Margin/VBox/HeaderHBox" unique_id=306927751] 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" unique_id=968911698] layout_mode = 2 theme_override_font_sizes/font_size = 42 text = "MAILBOX" [node name="HBox" type="HBoxContainer" parent="Margin/VBox" unique_id=916057446] layout_mode = 2 size_flags_vertical = 3 theme_override_constants/separation = 20 [node name="LeftCol" type="VBoxContainer" parent="Margin/VBox/HBox" unique_id=1487784728] custom_minimum_size = Vector2(350, 0) layout_mode = 2 theme_override_constants/separation = 12 [node name="Scroll" type="ScrollContainer" parent="Margin/VBox/HBox/LeftCol" unique_id=621356191] layout_mode = 2 size_flags_vertical = 3 [node name="MailListVBox" type="VBoxContainer" parent="Margin/VBox/HBox/LeftCol/Scroll" unique_id=426637634] 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_id=834561715] 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" unique_id=1987681114] layout_mode = 2 size_flags_horizontal = 3 theme_override_styles/panel = SubResource("StyleBoxFlat_middle") [node name="Margin" type="MarginContainer" parent="Margin/VBox/HBox/MiddleCol" unique_id=1071270502] 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" unique_id=685231427] layout_mode = 2 theme_override_constants/separation = 16 [node name="MailTitleLbl" type="Label" parent="Margin/VBox/HBox/MiddleCol/Margin/VBox" unique_id=382775133] 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" unique_id=1340637749] layout_mode = 2 [node name="MailContentText" type="RichTextLabel" parent="Margin/VBox/HBox/MiddleCol/Margin/VBox" unique_id=2049891721] 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" unique_id=2015908253] 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_id=1329577984] unique_name_in_owner = true layout_mode = 2 theme_override_constants/separation = 16 [node name="FooterHBox" type="HBoxContainer" parent="Margin/VBox" unique_id=320817593] layout_mode = 2 [node name="CloseBtn" type="Button" parent="Margin/VBox/FooterHBox" unique_id=1750785772] 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_id=896945464] 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" unique_id=281696850] layout_mode = 2 size_flags_horizontal = 3 [node name="ActionBtn" type="Button" parent="Margin/VBox/FooterHBox" unique_id=1319041955] 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="." unique_id=1436568788] visible = false layout_mode = 1 anchors_preset = 0 [node name="MailBtnTemplate" type="Button" parent="Templates" unique_id=1697770233] unique_name_in_owner = true custom_minimum_size = Vector2(0, 100) layout_mode = 0 theme_override_styles/normal = SubResource("StyleBoxFlat_mailbtn") toggle_mode = true [node name="Margin" type="MarginContainer" parent="Templates/MailBtnTemplate" unique_id=1252674391] 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" unique_id=63790172] layout_mode = 2 [node name="Title" type="Label" parent="Templates/MailBtnTemplate/Margin/VBox" unique_id=1593462170] 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" unique_id=389846246] layout_mode = 2 size_flags_vertical = 3 [node name="HBox" type="HBoxContainer" parent="Templates/MailBtnTemplate/Margin/VBox" unique_id=1962257584] layout_mode = 2 [node name="DateLbl" type="Label" parent="Templates/MailBtnTemplate/Margin/VBox/HBox" unique_id=1751599412] 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" unique_id=925210925] layout_mode = 2 size_flags_horizontal = 3 [node name="StatusLbl" type="Label" parent="Templates/MailBtnTemplate/Margin/VBox/HBox" unique_id=555418621] layout_mode = 2 theme_override_font_sizes/font_size = 14 [node name="RewardHBoxTemplate" type="PanelContainer" parent="Templates" unique_id=794877169] 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" unique_id=1534603023] 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" unique_id=1130738443] layout_mode = 2 theme_override_constants/separation = 12 [node name="IconBg" type="ColorRect" parent="Templates/RewardHBoxTemplate/Margin/HBox" unique_id=861876172] 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" unique_id=1578987001] 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" unique_id=2024184299] layout_mode = 2 alignment = 1 [node name="TypeLbl" type="Label" parent="Templates/RewardHBoxTemplate/Margin/HBox/VBox" unique_id=648909275] layout_mode = 2 theme_override_font_sizes/font_size = 12 text = "ITEM NAME" [node name="AmountLbl" type="Label" parent="Templates/RewardHBoxTemplate/Margin/HBox/VBox" unique_id=1659268049] layout_mode = 2 theme_override_font_sizes/font_size = 16 text = "x00000"