Issue 377 (#383)
* feat: Implements speech fixes #377 * docs: Automatic update of API docs * chore: Updated speech translation. Co-authored-by: Dennis Ploeger <develop@dieploegers.de> Co-authored-by: dploeger <dploeger@users.noreply.github.com>
This commit is contained in:
54 files changed
+279
-85
No files matched your search
Executable → Regular
+1
-1
@@ -1,3 +1,3 @@
|
||||
:exit_scene
|
||||
set_sound_state bg_sound res://game/sfx/sounds/doorOpen_2.ogg false
|
||||
set_sound_state _sound res://game/sfx/sounds/doorOpen_2.ogg false
|
||||
change_scene "res://game/rooms/room02/room02.tscn"
|
||||
Executable → Regular
+1
-1
@@ -11,7 +11,7 @@
|
||||
|
||||
|
||||
:ready
|
||||
set_sound_state bg_music res://game/sfx/contemplation.ogg true
|
||||
set_sound_state _music res://game/sfx/contemplation.ogg true
|
||||
|
||||
> [!room1_visited]
|
||||
set_global room1_visited true
|
||||
|
||||
Executable → Regular
+1
-1
@@ -1,3 +1,3 @@
|
||||
:exit_scene
|
||||
set_sound_state bg_sound res://game/sfx/sounds/doorOpen_2.ogg false
|
||||
set_sound_state _sound res://game/sfx/sounds/doorOpen_2.ogg false
|
||||
change_scene "res://game/rooms/room01/room01.tscn"
|
||||
Executable → Regular
+1
-1
@@ -1,3 +1,3 @@
|
||||
:exit_scene
|
||||
set_sound_state bg_sound res://game/sfx/sounds/doorOpen_2.ogg false
|
||||
set_sound_state _sound res://game/sfx/sounds/doorOpen_2.ogg false
|
||||
change_scene "res://game/rooms/room03/room03.tscn"
|
||||
@@ -1,2 +1,2 @@
|
||||
:use
|
||||
set_sound_state bg_music res://game/sfx/contemplation.ogg true
|
||||
set_sound_state _music res://game/sfx/contemplation.ogg true
|
||||
@@ -1,2 +1,2 @@
|
||||
:use
|
||||
set_sound_state bg_music off true
|
||||
set_sound_state _music off true
|
||||
Executable → Regular
+1
-1
@@ -1,5 +1,5 @@
|
||||
:exit_scene
|
||||
set_sound_state bg_sound res://game/sfx/sounds/doorOpen_2.ogg false
|
||||
set_sound_state _sound res://game/sfx/sounds/doorOpen_2.ogg false
|
||||
change_scene "res://game/rooms/room09/room09.tscn"
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -10,6 +10,7 @@ OPTIONS_LANGUAGE,Language,Langue,Sprache
|
||||
GENERAL_VOLUME,General,Général,Allgemein
|
||||
MUSIC_VOLUME,Music,Musique,Musik
|
||||
SOUND_VOLUME,Sound effects,Effets sonores,Soundeffekte
|
||||
SPEECH_VOLUME,Speech,Voix,Sprachausgabe
|
||||
CANCEL,Cancel,Annuler,Abbrechen
|
||||
OK,OK,Ok,Ok
|
||||
ENTER_SAVE_NAME,Enter the save name:,Entrez un nom de sauvegarde,Bitte gib einen Namen für das Spiel ein:
|
||||
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -5,7 +5,7 @@ func _ready():
|
||||
var event = ESCEvent.new(":music")
|
||||
event.statements.append(
|
||||
ESCCommand.new(
|
||||
"set_sound_state bg_music res://game/sfx/Game-Menu_Looping.mp3 true"
|
||||
"set_sound_state _music res://game/sfx/Game-Menu_Looping.mp3 true"
|
||||
)
|
||||
)
|
||||
escoria.event_manager.queue_event(event)
|
||||
|
||||
@@ -40,6 +40,7 @@ func initialize_options(p_settings):
|
||||
_options.get_node("general_volume").value = p_settings["master_volume"]
|
||||
_options.get_node("sound_volume").value = p_settings["sfx_volume"]
|
||||
_options.get_node("music_volume").value = p_settings["music_volume"]
|
||||
_options.get_node("speech_volume").value = p_settings["speech_volume"]
|
||||
|
||||
|
||||
func _on_language_input(event: InputEvent, language: String):
|
||||
@@ -77,3 +78,9 @@ func _on_back_pressed():
|
||||
escoria.settings = backup_settings
|
||||
escoria._on_settings_loaded(escoria.settings)
|
||||
emit_signal("back_button_pressed")
|
||||
|
||||
|
||||
func _on_speech_volume_value_changed(value: float) -> void:
|
||||
escoria.settings["speech_volume"] = value
|
||||
escoria._on_settings_loaded(escoria.settings)
|
||||
settings_changed = true
|
||||
@@ -19,16 +19,16 @@ size_flags_vertical = 3
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer"]
|
||||
margin_left = 482.0
|
||||
margin_top = 366.0
|
||||
margin_top = 354.0
|
||||
margin_right = 798.0
|
||||
margin_bottom = 533.0
|
||||
margin_bottom = 546.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="CenterContainer/VBoxContainer"]
|
||||
margin_right = 316.0
|
||||
margin_bottom = 136.0
|
||||
margin_bottom = 161.0
|
||||
size_flags_vertical = 6
|
||||
custom_constants/margin_right = 20
|
||||
custom_constants/margin_top = 20
|
||||
@@ -39,7 +39,7 @@ custom_constants/margin_bottom = 20
|
||||
margin_left = 20.0
|
||||
margin_top = 20.0
|
||||
margin_right = 296.0
|
||||
margin_bottom = 116.0
|
||||
margin_bottom = 141.0
|
||||
size_flags_vertical = 6
|
||||
custom_constants/hseparation = 40
|
||||
columns = 2
|
||||
@@ -115,10 +115,28 @@ max_value = 1.0
|
||||
step = 0.001
|
||||
value = 0.001
|
||||
|
||||
[node name="label5" type="Label" parent="CenterContainer/VBoxContainer/MarginContainer/options"]
|
||||
margin_top = 100.0
|
||||
margin_right = 220.0
|
||||
margin_bottom = 121.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "SPEECH_VOLUME"
|
||||
|
||||
[node name="speech_volume" type="HSlider" parent="CenterContainer/VBoxContainer/MarginContainer/options"]
|
||||
margin_left = 260.0
|
||||
margin_top = 100.0
|
||||
margin_right = 276.0
|
||||
margin_bottom = 116.0
|
||||
size_flags_horizontal = 3
|
||||
min_value = 0.001
|
||||
max_value = 1.0
|
||||
step = 0.001
|
||||
value = 0.001
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="CenterContainer/VBoxContainer"]
|
||||
margin_top = 140.0
|
||||
margin_top = 165.0
|
||||
margin_right = 316.0
|
||||
margin_bottom = 167.0
|
||||
margin_bottom = 192.0
|
||||
custom_constants/separation = 20
|
||||
alignment = 1
|
||||
|
||||
@@ -145,5 +163,6 @@ __meta__ = {
|
||||
[connection signal="value_changed" from="CenterContainer/VBoxContainer/MarginContainer/options/general_volume" to="." method="_on_general_volume_changed"]
|
||||
[connection signal="value_changed" from="CenterContainer/VBoxContainer/MarginContainer/options/sound_volume" to="." method="_on_sound_volume_changed"]
|
||||
[connection signal="value_changed" from="CenterContainer/VBoxContainer/MarginContainer/options/music_volume" to="." method="_on_music_volume_changed"]
|
||||
[connection signal="value_changed" from="CenterContainer/VBoxContainer/MarginContainer/options/speech_volume" to="." method="_on_speech_volume_value_changed"]
|
||||
[connection signal="pressed" from="CenterContainer/VBoxContainer/HBoxContainer/back" to="." method="_on_back_pressed"]
|
||||
[connection signal="pressed" from="CenterContainer/VBoxContainer/HBoxContainer/apply" to="." method="_on_apply_pressed"]
|
||||
Reference in new issue
Block a user