24 lines
958 B
Text
24 lines
958 B
Text
[gd_scene load_steps=4 format=3 uid="uid://qecwga1b4yqn"]
|
|
|
|
[ext_resource type="Script" path="res://components/Cursor/cursor.gd" id="1_nmkwm"]
|
|
[ext_resource type="Texture2D" uid="uid://kd8031vdmxb8" path="res://components/Cursor/normal-1.png" id="2_ucp64"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4cq27"]
|
|
size = Vector2(8, 8)
|
|
|
|
[node name="Cursor" type="CanvasLayer"]
|
|
process_mode = 3
|
|
script = ExtResource("1_nmkwm")
|
|
|
|
[node name="MouseControl" type="Area2D" parent="."]
|
|
input_pickable = false
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="MouseControl"]
|
|
shape = SubResource("RectangleShape2D_4cq27")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="MouseControl"]
|
|
position = Vector2(2, 4)
|
|
texture = ExtResource("2_ucp64")
|
|
|
|
[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"]
|