Add new pixel mouse

This commit is contained in:
noah cuadrado 2024-09-09 00:54:59 +02:00
parent 70343d5df7
commit b3ebf482b5
3 changed files with 36 additions and 2 deletions

View file

@ -1,7 +1,7 @@
[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://q4wsbkhirtoh" path="res://components/Cursor/cursor.png" id="2_luk0m"]
[ext_resource type="Texture2D" uid="uid://cfhqgy3ueghye" path="res://components/Cursor/cursor_pixel.png" id="2_30mna"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4cq27"]
@ -16,7 +16,7 @@ shape = SubResource("RectangleShape2D_4cq27")
[node name="Sprite2D" type="Sprite2D" parent="MouseControl"]
scale = Vector2(0.15625, 0.15625)
texture = ExtResource("2_luk0m")
texture = ExtResource("2_30mna")
[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"]

Binary file not shown.

After

Width:  |  Height:  |  Size: 511 B

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cfhqgy3ueghye"
path="res://.godot/imported/cursor_pixel.png-899adaa457ed843c1c5a53f6e1062611.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://components/Cursor/cursor_pixel.png"
dest_files=["res://.godot/imported/cursor_pixel.png-899adaa457ed843c1c5a53f6e1062611.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1