Meilleure clue pour parler à bob

This commit is contained in:
Thomas
2025-03-28 16:23:12 +01:00
parent fb99561c28
commit 7a58999034
13 changed files with 608 additions and 21 deletions

82
UI/clues/bub6C0E.tmp Normal file
View File

@@ -0,0 +1,82 @@
[gd_scene load_steps=7 format=3 uid="uid://dn10ervwv15oo"]
[ext_resource type="Texture2D" uid="uid://cwbhdira3w8qx" path="res://assest/ui/UI_48x48.png" id="1_o6ktm"]
[ext_resource type="Script" path="res://UI/clues/bubble_clue.gd" id="2_u6r66"]
[ext_resource type="PackedScene" uid="uid://clqdxhwojbkwp" path="res://UI/clues/button_clue.tscn" id="3_p3oka"]
[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(".:offset")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, 0)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Sprite2D:position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(1, -5)]
}
[sub_resource type="Animation" id="Animation_puwvl"]
resource_name = "move"
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:offset")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.266667, 0.533333, 0.733333),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [Vector2(0, 0), Vector2(0, 1), Vector2(0, 2), Vector2(0, 1)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Sprite2D:position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.266667, 0.533333, 0.733333),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [Vector2(0, -5), Vector2(0, -4), Vector2(0, -3), Vector2(0, -4)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_kli7q"]
_data = {
"RESET": SubResource("Animation_srt4p"),
"move": SubResource("Animation_puwvl")
}
[node name="Sprite2D" type="Sprite2D"]
texture = ExtResource("1_o6ktm")
hframes = 18
vframes = 9
frame = 5
script = ExtResource("2_u6r66")
[node name="Sprite2D" parent="." instance=ExtResource("3_p3oka")]
position = Vector2(1, -5)
scale = Vector2(0.401042, 0.401042)
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_kli7q")
}

82
UI/clues/bub8585.tmp Normal file
View File

@@ -0,0 +1,82 @@
[gd_scene load_steps=7 format=3 uid="uid://dn10ervwv15oo"]
[ext_resource type="Texture2D" uid="uid://cwbhdira3w8qx" path="res://assest/ui/UI_48x48.png" id="1_o6ktm"]
[ext_resource type="Script" path="res://UI/clues/bubble_clue.gd" id="2_u6r66"]
[ext_resource type="PackedScene" uid="uid://clqdxhwojbkwp" path="res://UI/clues/button_clue.tscn" id="3_p3oka"]
[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(".:offset")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, 0)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Sprite2D:position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(1, -5)]
}
[sub_resource type="Animation" id="Animation_puwvl"]
resource_name = "move"
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:offset")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.266667, 0.533333, 0.733333),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [Vector2(0, 0), Vector2(0, 1), Vector2(0, 2), Vector2(0, 1)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Sprite2D:position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.266667, 0.533333, 0.733333),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [Vector2(0, -5), Vector2(0, -4), Vector2(0, -3), Vector2(0, -4)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_kli7q"]
_data = {
"RESET": SubResource("Animation_srt4p"),
"move": SubResource("Animation_puwvl")
}
[node name="Sprite2D" type="Sprite2D"]
texture = ExtResource("1_o6ktm")
hframes = 18
vframes = 9
frame = 5
script = ExtResource("2_u6r66")
[node name="Sprite2D" parent="." instance=ExtResource("3_p3oka")]
position = Vector2(1, -5)
scale = Vector2(0.401042, 0.401042)
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_kli7q")
}

82
UI/clues/bubA09B.tmp Normal file
View File

@@ -0,0 +1,82 @@
[gd_scene load_steps=7 format=3 uid="uid://dn10ervwv15oo"]
[ext_resource type="Texture2D" uid="uid://cwbhdira3w8qx" path="res://assest/ui/UI_48x48.png" id="1_o6ktm"]
[ext_resource type="Script" path="res://UI/clues/bubble_clue.gd" id="2_u6r66"]
[ext_resource type="PackedScene" uid="uid://clqdxhwojbkwp" path="res://UI/clues/button_clue.tscn" id="3_p3oka"]
[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(".:offset")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, 0)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Sprite2D:position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(1, -5)]
}
[sub_resource type="Animation" id="Animation_puwvl"]
resource_name = "move"
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:offset")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.266667, 0.533333, 0.733333),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [Vector2(0, 0), Vector2(0, 1), Vector2(0, 2), Vector2(0, 1)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Sprite2D:position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.266667, 0.533333, 0.733333),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [Vector2(0, -5), Vector2(0, -4), Vector2(0, -3), Vector2(0, -4)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_kli7q"]
_data = {
"RESET": SubResource("Animation_srt4p"),
"move": SubResource("Animation_puwvl")
}
[node name="Sprite2D" type="Sprite2D"]
texture = ExtResource("1_o6ktm")
hframes = 18
vframes = 9
frame = 5
script = ExtResource("2_u6r66")
[node name="Sprite2D" parent="." instance=ExtResource("3_p3oka")]
position = Vector2(1, -5)
scale = Vector2(0.401042, 0.401042)
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_kli7q")
}

82
UI/clues/bubEE69.tmp Normal file
View File

@@ -0,0 +1,82 @@
[gd_scene load_steps=7 format=3 uid="uid://dn10ervwv15oo"]
[ext_resource type="Texture2D" uid="uid://cwbhdira3w8qx" path="res://assest/ui/UI_48x48.png" id="1_o6ktm"]
[ext_resource type="Script" path="res://UI/clues/bubble_clue.gd" id="2_u6r66"]
[ext_resource type="PackedScene" uid="uid://clqdxhwojbkwp" path="res://UI/clues/button_clue.tscn" id="3_p3oka"]
[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(".:offset")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, 0)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Sprite2D:position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(1, -5)]
}
[sub_resource type="Animation" id="Animation_puwvl"]
resource_name = "move"
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:offset")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.266667, 0.533333, 0.733333),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [Vector2(0, 0), Vector2(0, 1), Vector2(0, 2), Vector2(0, 1)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Sprite2D:position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.266667, 0.533333, 0.733333),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [Vector2(0, -5), Vector2(0, -4), Vector2(0, -3), Vector2(0, -4)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_kli7q"]
_data = {
"RESET": SubResource("Animation_srt4p"),
"move": SubResource("Animation_puwvl")
}
[node name="Sprite2D" type="Sprite2D"]
texture = ExtResource("1_o6ktm")
hframes = 18
vframes = 9
frame = 5
script = ExtResource("2_u6r66")
[node name="Sprite2D" parent="." instance=ExtResource("3_p3oka")]
position = Vector2(1, -5)
scale = Vector2(0.401042, 0.401042)
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_kli7q")
}

10
UI/clues/bubble_clue.gd Normal file
View File

@@ -0,0 +1,10 @@
extends Sprite2D
class_name BubbleClue
func setVisible(isV: bool):
visible = isV
if isV:
$AnimationPlayer.play("move")
else:
$AnimationPlayer.stop()
$Sprite2D.setVisible(isV)

View File

@@ -1,10 +1,8 @@
[gd_scene load_steps=7 format=3 uid="uid://dn10ervwv15oo"]
[ext_resource type="Texture2D" uid="uid://cwbhdira3w8qx" path="res://assest/ui/UI_48x48.png" id="1_o6ktm"]
[ext_resource type="Script" path="res://UI/clues/button_clue.gd" id="2_iwm3w"]
[sub_resource type="LabelSettings" id="LabelSettings_yr8f5"]
font_color = Color(0, 0, 0, 1)
[ext_resource type="Script" path="res://UI/clues/bubble_clue.gd" id="2_u6r66"]
[ext_resource type="PackedScene" uid="uid://clqdxhwojbkwp" path="res://UI/clues/button_clue.tscn" id="3_p3oka"]
[sub_resource type="Animation" id="Animation_srt4p"]
loop_mode = 1
@@ -23,14 +21,14 @@ tracks/0/keys = {
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Label:position")
tracks/1/path = NodePath("Sprite2D:position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(-18, -14)]
"values": [Vector2(1, -5)]
}
[sub_resource type="Animation" id="Animation_puwvl"]
@@ -45,20 +43,20 @@ tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.266667, 0.533333, 0.733333),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 1,
"update": 0,
"values": [Vector2(0, 0), Vector2(0, 1), Vector2(0, 2), Vector2(0, 1)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Label:position")
tracks/1/path = NodePath("Sprite2D:position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.266667, 0.533333, 0.733333),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 1,
"values": [Vector2(-18, -14), Vector2(-18, -13), Vector2(-18, -12), Vector2(-18, -13)]
"update": 0,
"values": [Vector2(0, -5), Vector2(0, -4), Vector2(0, -3), Vector2(0, -4)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_kli7q"]
@@ -72,17 +70,11 @@ texture = ExtResource("1_o6ktm")
hframes = 18
vframes = 9
frame = 5
script = ExtResource("2_iwm3w")
script = ExtResource("2_u6r66")
[node name="Label" type="Label" parent="."]
offset_left = -18.0
offset_top = -14.0
offset_right = 18.0
offset_bottom = 19.0
text = "E"
label_settings = SubResource("LabelSettings_yr8f5")
horizontal_alignment = 1
vertical_alignment = 1
[node name="Sprite2D" parent="." instance=ExtResource("3_p3oka")]
position = Vector2(1, -5)
scale = Vector2(0.401042, 0.401042)
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {

87
UI/clues/butB2F.tmp Normal file
View File

@@ -0,0 +1,87 @@
[gd_scene load_steps=6 format=3 uid="uid://clqdxhwojbkwp"]
[ext_resource type="Texture2D" uid="uid://b7k2x0bnxlhwh" path="res://assest/ui/Modern_UI_Style_2_48x48.png" id="1_cr0we"]
[ext_resource type="Script" path="res://UI/clues/button_clue.gd" id="2_md8cj"]
[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": [432, 433, 434, 433]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Label:position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.233333, 0.5, 0.733333),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 1,
"values": [Vector2(-18, 3), Vector2(-18, 5), Vector2(-18, 7), Vector2(-18, 5)]
}
[sub_resource type="Animation" id="Animation_puwvl"]
resource_name = "move"
length = 0.75
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.266667, 0.533333),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 1,
"values": [432, 433, 434]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Label:position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.266667, 0.533333),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 1,
"values": [Vector2(-18, 3), Vector2(-18, 5), Vector2(-18, 7)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_kli7q"]
_data = {
"RESET": SubResource("Animation_srt4p"),
"move": SubResource("Animation_puwvl")
}
[node name="Sprite2D" type="Sprite2D"]
texture = ExtResource("1_cr0we")
hframes = 49
vframes = 17
frame = 432
script = ExtResource("2_md8cj")
[node name="Label" type="Label" parent="."]
offset_left = -18.0
offset_top = 3.0
offset_right = 18.0
offset_bottom = 36.0
text = "E"
horizontal_alignment = 1
vertical_alignment = 1
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_kli7q")
}