ld-56/components/Cursor/Cursor.tscn

26 lines
974 B
Text
Raw Normal View History

2024-10-06 08:22:46 +00:00
[gd_scene load_steps=4 format=3 uid="uid://qecwga1b4yqn"]
[ext_resource type="Script" path="res://components/Cursor/cursor.gd" id="1_nmkwm"]
2024-10-07 05:05:27 +00:00
[ext_resource type="Texture2D" uid="uid://kd8031vdmxb8" path="res://components/Cursor/normal-1.png" id="2_ucp64"]
2024-10-06 08:22:46 +00:00
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4cq27"]
2024-10-07 05:05:27 +00:00
size = Vector2(8, 8)
2024-10-06 08:22:46 +00:00
[node name="Cursor" type="CanvasLayer"]
2024-10-07 05:05:27 +00:00
process_mode = 3
2024-10-06 08:22:46 +00:00
script = ExtResource("1_nmkwm")
[node name="MouseControl" type="Area2D" parent="."]
2024-10-07 05:05:27 +00:00
input_pickable = false
2024-10-06 08:22:46 +00:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="MouseControl"]
shape = SubResource("RectangleShape2D_4cq27")
[node name="Sprite2D" type="Sprite2D" parent="MouseControl"]
2024-10-07 08:25:58 +00:00
visible = false
2024-10-07 05:05:27 +00:00
position = Vector2(2, 4)
texture = ExtResource("2_ucp64")
2024-10-06 08:22:46 +00:00
[connection signal="area_entered" from="MouseControl" to="." method="_on_mouse_control_area_entered"]
[connection signal="area_exited" from="MouseControl" to="." method="_on_mouse_control_area_exited"]