47 lines
1.3 KiB
Plaintext
47 lines
1.3 KiB
Plaintext
[gd_scene load_steps=4 format=3]
|
|
|
|
[ext_resource type="Script" path="res://pickups/pickup.gd" id="1_pickup"]
|
|
[ext_resource type="FontFile" path="res://assets/fonts/PixelOperator8.ttf" id="2_font"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="PickupShape"]
|
|
size = Vector2(28, 24)
|
|
|
|
[node name="Pickup" type="Area2D"]
|
|
z_index = 2
|
|
collision_layer = 0
|
|
collision_mask = 2
|
|
monitoring = true
|
|
script = ExtResource("1_pickup")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
modulate = Color(1, 1, 1, 1)
|
|
scale = Vector2(0.5, 0.5)
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="Sprite2D"]
|
|
offset_left = -16.0
|
|
offset_top = -16.0
|
|
offset_right = 16.0
|
|
offset_bottom = 16.0
|
|
color = Color(1, 1, 1, 1)
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("PickupShape")
|
|
|
|
[node name="Label" type="Label" parent="."]
|
|
offset_left = -80.0
|
|
offset_top = -50.0
|
|
offset_right = 80.0
|
|
offset_bottom = -18.0
|
|
mouse_filter = 2
|
|
theme_override_colors/font_color = Color(0.82, 0.77, 0.63, 1)
|
|
theme_override_colors/font_shadow_color = Color(0.025, 0.018, 0.026, 1)
|
|
theme_override_constants/shadow_offset_x = 1
|
|
theme_override_constants/shadow_offset_y = 1
|
|
clip_text = true
|
|
autowrap_mode = 3
|
|
theme_override_fonts/font = ExtResource("2_font")
|
|
theme_override_font_sizes/font_size = 8
|
|
text = "Item"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|