Fix word ambient -> ambient

This commit is contained in:
VAILLANT Jeremy
2021-05-23 21:33:44 +02:00
parent fd7e341e49
commit 03fe0c753d
4 changed files with 22 additions and 22 deletions
+4 -4
View File
@@ -45,11 +45,11 @@ func get_setting_gyrosocpe():
func set_setting_gyroscope(value):
setting.set_gyroscope(value)
func get_setting_ambiant_sound():
return setting.get_ambiant_sound()
func get_setting_ambient_sound():
return setting.get_ambient_sound()
func set_setting_ambiant_sound(value):
setting.set_ambiant_sound(value)
func set_setting_ambient_sound(value):
setting.set_ambient_sound(value)
func _process(_delta):
print("[global#_process]")
+6 -6
View File
@@ -5,7 +5,7 @@ func _ready():
_translation()
_apply_settings_language()
_apply_settings_gyroscope()
_apply_settings_sound_ambiant()
_apply_settings_sound_ambient()
## PRIVATE
func _translation():
@@ -18,13 +18,13 @@ func _apply_settings_language():
func _apply_settings_gyroscope():
$VBoxContainer/gyroscope/HBoxContainer/data.set_pressed(Global.get_setting_gyrosocpe())
func _apply_settings_sound_ambiant():
$VBoxContainer/ambiant_sound/HBoxContainer/data.set_pressed(Global.get_setting_ambiant_sound())
func _apply_settings_sound_ambient():
$VBoxContainer/ambient_sound/HBoxContainer/data.set_pressed(Global.get_setting_ambient_sound())
func _on_gyroscope_pressed():
print("[Settings#_on_gyroscope_pressed] change value to database ...........")
Global.set_setting_gyroscope(int($VBoxContainer/gyroscope/HBoxContainer/data.pressed))
func _on_ambiant_sound_pressed():
print("[Settings#_on_ambiant_sound_pressed] change value to database ...........")
Global.set_setting_ambiant_sound(int($VBoxContainer/ambiant_sound/HBoxContainer/data.pressed))
func _on_ambient_sound_pressed():
print("[Settings#_on_ambient_sound_pressed] change value to database ...........")
Global.set_setting_ambient_sound(int($VBoxContainer/ambient_sound/HBoxContainer/data.pressed))
+5 -5
View File
@@ -8,7 +8,7 @@ onready var last_btn = null
func _ready():
_display_hud_menu()
_play_ambiant_sound()
_play_ambient_sound()
func _display_hud_menu():
var counter = 0
@@ -46,7 +46,7 @@ func _create_button_info(scene, counter, label_id):
last_btn = btn
func _play_ambiant_sound():
if Global.get_setting_ambiant_sound():
$AmbiantSound.play()
$AmbiantSound.stream_paused = false
func _play_ambient_sound():
if Global.get_setting_ambient_sound():
$AmbientSound.play()
$AmbientSound.stream_paused = false