few UX improvements
This commit is contained in:
63
scenes/arrow/arrow.tscn
Normal file
63
scenes/arrow/arrow.tscn
Normal file
@@ -0,0 +1,63 @@
|
||||
[gd_scene format=3 uid="uid://xwccasmeo5cy"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://d3f721y4183yy" path="res://utils/clickable.gd" id="1_8e2im"]
|
||||
[ext_resource type="Texture2D" uid="uid://cgrudt5ev651p" path="res://assets/ui/arrow_001.png" id="1_uynht"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_ftp6y"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:scale")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector2(0.5, 0.5)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_pd34m"]
|
||||
resource_name = "idle"
|
||||
length = 2.0
|
||||
loop_mode = 1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:scale")
|
||||
tracks/0/interp = 2
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 1),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector2(0.5, 0.5), Vector2(0.4, 0.4)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_qjyke"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_ftp6y"),
|
||||
&"idle": SubResource("Animation_pd34m")
|
||||
}
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_hp5o0"]
|
||||
radius = 115.15642
|
||||
|
||||
[node name="Area2D" type="Area2D" unique_id=1884209541]
|
||||
script = ExtResource("1_8e2im")
|
||||
|
||||
[node name="Arrow001" type="Sprite2D" parent="." unique_id=774581185]
|
||||
scale = Vector2(0.5, 0.5)
|
||||
texture = ExtResource("1_uynht")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="Arrow001" unique_id=684818971]
|
||||
libraries/ = SubResource("AnimationLibrary_qjyke")
|
||||
autoplay = &"idle"
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=9151517]
|
||||
shape = SubResource("CircleShape2D_hp5o0")
|
||||
|
||||
[connection signal="input_event" from="." to="." method="_on_input_event"]
|
||||
[connection signal="mouse_entered" from="." to="." method="_on_mouse_entered"]
|
||||
[connection signal="mouse_exited" from="." to="." method="_on_mouse_exited"]
|
||||
Reference in New Issue
Block a user