[gd_scene load_steps=12 format=3 uid="uid://bi4c34ii72y46"] [ext_resource type="Texture2D" uid="uid://dxyf557m4mq1p" path="res://assets/sprites/gui/EmptyPlantCard.png" id="1_4rm55"] [ext_resource type="Script" uid="uid://cepaa3acqx70d" path="res://scripts/gui/seedpacket/seedpacket.gd" id="1_c8vxi"] [ext_resource type="Texture2D" uid="uid://cabpf23ndlvx0" path="res://assets/sprites/gui/Selection.tres" id="3_fon4l"] [ext_resource type="Script" uid="uid://bppehhpn0u7ep" path="res://scripts/gui/seedpacket/seedpacket_cost_label.gd" id="3_tntkr"] [ext_resource type="Script" uid="uid://bx7k7g0ebkwef" path="res://scripts/gui/seedpacket/seedpacket_progressbar.gd" id="4_gr8e8"] [ext_resource type="Texture2D" uid="uid://dvldjlg0nr355" path="res://assets/sprites/atlases/atlas1.png" id="5_2cmc5"] [sub_resource type="LabelSettings" id="LabelSettings_c8vxi"] resource_local_to_scene = true font_size = 10 font_color = Color(0, 0, 0, 1) [sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_tntkr"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_gr8e8"] bg_color = Color(0.12, 0.12, 0.12, 0.490196) [sub_resource type="AtlasTexture" id="AtlasTexture_fon4l"] atlas = ExtResource("5_2cmc5") region = Rect2(475, 68, 39, 51) [sub_resource type="AtlasTexture" id="AtlasTexture_gtmhg"] atlas = ExtResource("5_2cmc5") region = Rect2(561, 78, 28, 33) [node name="Seedpacket" type="AspectRatioContainer"] anchors_preset = -1 anchor_right = 0.068 anchor_bottom = 0.14 offset_right = 0.199997 ratio = 0.7321 script = ExtResource("1_c8vxi") [node name="TextureButton" type="TextureButton" parent="."] clip_children = 2 layout_mode = 2 texture_normal = ExtResource("1_4rm55") texture_focused = ExtResource("3_fon4l") stretch_mode = 0 [node name="Cost" type="Label" parent="TextureButton"] layout_mode = 1 anchors_preset = -1 anchor_left = 0.122 anchor_top = 0.714 anchor_right = 0.878 anchor_bottom = 0.911 offset_left = -0.00200033 offset_top = 0.0159988 offset_right = 0.0019989 offset_bottom = -0.0159988 label_settings = SubResource("LabelSettings_c8vxi") horizontal_alignment = 1 vertical_alignment = 1 text_overrun_behavior = 1 visible_characters_behavior = 1 script = ExtResource("3_tntkr") [node name="PreviewContainer" type="Control" parent="TextureButton"] clip_contents = true layout_mode = 1 anchor_right = 0.976 anchor_bottom = 0.714 offset_left = -27.0 offset_top = -26.0 offset_right = 24.984 offset_bottom = -2.984 mouse_filter = 2 [node name="Preview" type="TextureRect" parent="TextureButton/PreviewContainer"] layout_mode = 1 anchors_preset = -1 anchor_left = 0.297 anchor_top = 0.412 anchor_right = 0.74 anchor_bottom = 1.302 offset_left = -0.324001 offset_top = 0.0439987 offset_right = -0.0800018 offset_bottom = -0.0259933 grow_horizontal = 2 grow_vertical = 2 mouse_filter = 2 expand_mode = 1 stretch_mode = 5 [node name="RechargeProgress" type="ProgressBar" parent="TextureButton"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 mouse_filter = 2 theme_override_styles/background = SubResource("StyleBoxEmpty_tntkr") theme_override_styles/fill = SubResource("StyleBoxFlat_gr8e8") max_value = 1.0 fill_mode = 3 show_percentage = false script = ExtResource("4_gr8e8") [node name="Availability" type="ColorRect" parent="TextureButton"] visible = false 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, 0, 0, 0.247059) [node name="Forbidden" type="TextureRect" parent="TextureButton"] visible = false layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 texture = SubResource("AtlasTexture_fon4l") [node name="Locked" type="TextureRect" parent="TextureButton"] visible = false layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = 7.0 offset_top = 12.0 offset_right = -6.0 offset_bottom = -11.0 grow_horizontal = 2 grow_vertical = 2 texture = SubResource("AtlasTexture_gtmhg") [node name="RechargeTimer" type="Timer" parent="."] one_shot = true [connection signal="pressed" from="TextureButton" to="." method="on_pressed"]