Snake-case .tscn, .gd and _on_* callbacks

Co-authored-by: Doug Thompson <s-git@dougthompson.co.uk>
This commit is contained in:
Max Hilbrunner
2023-05-18 12:45:55 +02:00
parent 03081e0f14
commit 72c0af46b2
33 changed files with 133 additions and 139 deletions

View File

@@ -65,7 +65,7 @@ and :ref:`set_recording_active() <class_AudioEffectRecord_method_set_recording_a
.. tabs::
.. code-tab:: gdscript GDScript
func _on_RecordButton_pressed():
func _on_record_button_pressed():
if effect.is_recording_active():
recording = effect.get_recording()
$PlayButton.disabled = false
@@ -114,7 +114,7 @@ the recorded stream can be stored into the ``recording`` variable by calling
.. tabs::
.. code-tab:: gdscript GDScript
func _on_PlayButton_pressed():
func _on_play_button_pressed():
print(recording)
print(recording.format)
print(recording.mix_rate)
@@ -145,7 +145,7 @@ To playback the recording, you assign the recording as the stream of the
.. tabs::
.. code-tab:: gdscript GDScript
func _on_SaveButton_pressed():
func _on_save_button_pressed():
var save_path = $SaveButton/Filename.text
recording.save_to_wav(save_path)
$Status.text = "Saved WAV file to: %s\n(%s)" % [save_path, ProjectSettings.globalize_path(save_path)]