Correction du son des cristaux, ajout d'un fade out à tous les dialogues et correction de traduction
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
extends InspectableEntity
|
||||
class_name WinCristal
|
||||
|
||||
var order = 0
|
||||
@export_tool_button("Update", "Callable") var update_action = update
|
||||
@export_tool_button("Spawn Anim", "Callable") var spawn_action = spawn_animation
|
||||
@export var data : WinCristalData = WinCristalData.random() :
|
||||
@@ -20,7 +21,21 @@ func update():
|
||||
|
||||
func spawn_animation():
|
||||
scale = Vector2.ZERO
|
||||
%CristalPlayer.play()
|
||||
|
||||
match order:
|
||||
0:
|
||||
%CristalPlayer.play()
|
||||
1:
|
||||
%CristalPlayer2.play()
|
||||
2:
|
||||
%CristalPlayer3.play()
|
||||
3:
|
||||
%CristalPlayer4.play()
|
||||
4:
|
||||
%CristalPlayer5.play()
|
||||
_:
|
||||
%CristalPlayer6.play()
|
||||
|
||||
get_tree().create_tween().tween_property(self, "scale", Vector2.ONE, 0.3).set_trans(Tween.TRANS_BOUNCE)
|
||||
|
||||
func get_card_up_padding() -> float:
|
||||
|
||||
@@ -3,7 +3,12 @@
|
||||
[ext_resource type="Script" uid="uid://cismap3cn5e36" path="res://entities/interactables/win_cristal/scripts/win_cristal.gd" id="1_yb2ta"]
|
||||
[ext_resource type="Script" uid="uid://cos0ennmyfvc2" path="res://entities/interactables/win_cristal/scripts/win_cristal_data.gd" id="2_vkbio"]
|
||||
[ext_resource type="Texture2D" uid="uid://dslagvhodlepi" path="res://entities/interactables/win_cristal/assets/sprites/asset_cristals.png" id="2_yb2ta"]
|
||||
[ext_resource type="AudioStream" uid="uid://du3hfjbaoyc8" path="res://common/audio_manager/assets/sfx/fin_de_map/fin_de_map.ogg" id="4_vkbio"]
|
||||
[ext_resource type="AudioStream" uid="uid://bfhab51qe80j5" path="res://common/audio_manager/assets/sfx/fin_de_map/fin_de_map_cristal_1.wav" id="4_tfnwb"]
|
||||
[ext_resource type="AudioStream" uid="uid://cr6y4e0p3xrqv" path="res://common/audio_manager/assets/sfx/fin_de_map/fin_de_map_cristal_2.wav" id="5_c8pdf"]
|
||||
[ext_resource type="AudioStream" uid="uid://ccppo3l1vyd08" path="res://common/audio_manager/assets/sfx/fin_de_map/fin_de_map_cristal_3.wav" id="6_744fd"]
|
||||
[ext_resource type="AudioStream" uid="uid://wphcqemoy810" path="res://common/audio_manager/assets/sfx/fin_de_map/fin_de_map_cristal_4.wav" id="7_am05r"]
|
||||
[ext_resource type="AudioStream" uid="uid://v2snsj54xlkw" path="res://common/audio_manager/assets/sfx/fin_de_map/fin_de_map_cristal_5.wav" id="8_d7y1i"]
|
||||
[ext_resource type="AudioStream" uid="uid://bvhnpk7pbh75t" path="res://common/audio_manager/assets/sfx/fin_de_map/fin_de_map_cristal_6.wav" id="9_laxd1"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_5lni1"]
|
||||
script = ExtResource("2_vkbio")
|
||||
@@ -73,5 +78,30 @@ flip_h = true
|
||||
|
||||
[node name="CristalPlayer" type="AudioStreamPlayer2D" parent="." unique_id=1879646229]
|
||||
unique_name_in_owner = true
|
||||
stream = ExtResource("4_vkbio")
|
||||
stream = ExtResource("4_tfnwb")
|
||||
bus = &"Sfx"
|
||||
|
||||
[node name="CristalPlayer2" type="AudioStreamPlayer2D" parent="." unique_id=786596923]
|
||||
unique_name_in_owner = true
|
||||
stream = ExtResource("5_c8pdf")
|
||||
bus = &"Sfx"
|
||||
|
||||
[node name="CristalPlayer3" type="AudioStreamPlayer2D" parent="." unique_id=1324425771]
|
||||
unique_name_in_owner = true
|
||||
stream = ExtResource("6_744fd")
|
||||
bus = &"Sfx"
|
||||
|
||||
[node name="CristalPlayer4" type="AudioStreamPlayer2D" parent="." unique_id=481950996]
|
||||
unique_name_in_owner = true
|
||||
stream = ExtResource("7_am05r")
|
||||
bus = &"Sfx"
|
||||
|
||||
[node name="CristalPlayer5" type="AudioStreamPlayer2D" parent="." unique_id=155314990]
|
||||
unique_name_in_owner = true
|
||||
stream = ExtResource("8_d7y1i")
|
||||
bus = &"Sfx"
|
||||
|
||||
[node name="CristalPlayer6" type="AudioStreamPlayer2D" parent="." unique_id=1866214122]
|
||||
unique_name_in_owner = true
|
||||
stream = ExtResource("9_laxd1")
|
||||
bus = &"Sfx"
|
||||
|
||||
Reference in New Issue
Block a user