newlon/scenes/templates/plant_reward.tscn
2025-07-20 22:11:23 +05:00

80 lines
2.3 KiB
Text

[gd_scene load_steps=5 format=3 uid="uid://myjhi5m0eaap"]
[ext_resource type="Script" uid="uid://gymo10tjruj2" path="res://scripts/droppable-items/DroppableSeedpacket.cs" id="1_rir1v"]
[ext_resource type="Texture2D" uid="uid://dxyf557m4mq1p" path="res://assets/sprites/gui/EmptyPlantCard.png" id="2_wupw1"]
[sub_resource type="LabelSettings" id="LabelSettings_scv3y"]
resource_local_to_scene = true
font_size = 13
font_color = Color(0, 0, 0, 1)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2c7xr"]
size = Vector2(41, 56)
[node name="PlantReward" type="Area2D" node_paths=PackedStringArray("_cost", "_icon", "_packet")]
script = ExtResource("1_rir1v")
_cost = NodePath("Seedpacket/Cost")
_icon = NodePath("Seedpacket/PlantPreviewContainer/Preview")
_packet = NodePath("Seedpacket")
[node name="Seedpacket" type="TextureRect" parent="."]
anchors_preset = -1
anchor_right = 0.137
anchor_bottom = 0.28
offset_left = -20.5
offset_top = -28.0
offset_right = 20.5
offset_bottom = 28.0
mouse_default_cursor_shape = 2
texture = ExtResource("2_wupw1")
metadata/_edit_use_anchors_ = true
[node name="Cost" type="Label" parent="Seedpacket"]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.146
anchor_top = 0.732
anchor_right = 0.854
anchor_bottom = 0.893
offset_left = 0.0279989
offset_top = 0.0159912
offset_right = -0.0279999
offset_bottom = -0.0160065
grow_horizontal = 2
grow_vertical = 2
label_settings = SubResource("LabelSettings_scv3y")
horizontal_alignment = 1
vertical_alignment = 1
text_overrun_behavior = 3
[node name="PlantPreviewContainer" type="Control" parent="Seedpacket"]
clip_contents = true
layout_mode = 1
anchor_left = -0.061
anchor_top = -0.036
anchor_right = 1.061
anchor_bottom = 0.661
offset_left = 0.00199986
offset_top = 0.0320001
offset_right = -0.0019989
offset_bottom = -0.0319977
mouse_filter = 2
[node name="Preview" type="TextureRect" parent="Seedpacket/PlantPreviewContainer"]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.185
anchor_top = 0.205
anchor_right = 0.815
anchor_bottom = 1.333
offset_left = -0.0200005
offset_top = 0.00999928
offset_right = 0.0199966
offset_bottom = 0.0259933
mouse_filter = 2
mouse_default_cursor_shape = 2
expand_mode = 1
stretch_mode = 5
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_2c7xr")