amélioration de la commande tactile
les clues sont dépendantes du contexte elles affichent un bouton si on est au clavier un doigt si on est à la souris ou au doigt
This commit is contained in:
36
UI/clues/touch_clue.tscn
Normal file
36
UI/clues/touch_clue.tscn
Normal file
@@ -0,0 +1,36 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://dnauf5lsaj63n"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cwbhdira3w8qx" path="res://assest/ui/UI_48x48.png" id="1_nlo3w"]
|
||||
[ext_resource type="Script" path="res://UI/clues/button_clue.gd" id="2_4uok5"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_srt4p"]
|
||||
loop_mode = 1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.233333, 0.5, 0.733333),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1),
|
||||
"update": 1,
|
||||
"values": [74, 92, 94, 76]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_kli7q"]
|
||||
_data = {
|
||||
"move": SubResource("Animation_srt4p")
|
||||
}
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D"]
|
||||
texture = ExtResource("1_nlo3w")
|
||||
hframes = 18
|
||||
vframes = 16
|
||||
frame = 74
|
||||
script = ExtResource("2_4uok5")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_kli7q")
|
||||
}
|
||||
Reference in New Issue
Block a user