From 8949386382320bc1055ee1d8eb3e86dc94c0ad8e Mon Sep 17 00:00:00 2001 From: Micky Date: Thu, 1 Sep 2022 15:19:23 +0200 Subject: Rename AnimatedTexture `oneshot` to `one_shot` AnimatedTexture.`oneshot` -> `one_shot` For consistency. Every other exposed `one_shot` is spaced out like this. --- doc/classes/AnimatedTexture.xml | 2 +- editor/connections_dialog.cpp | 18 +++++++++--------- editor/connections_dialog.h | 4 ++-- editor/project_converter_3_to_4.cpp | 6 ++++++ scene/resources/texture.cpp | 16 ++++++++-------- scene/resources/texture.h | 6 +++--- 6 files changed, 29 insertions(+), 23 deletions(-) diff --git a/doc/classes/AnimatedTexture.xml b/doc/classes/AnimatedTexture.xml index 5ad4c4e10a..d2fa7bb1e9 100644 --- a/doc/classes/AnimatedTexture.xml +++ b/doc/classes/AnimatedTexture.xml @@ -62,7 +62,7 @@ Number of frames to use in the animation. While you can create the frames independently with [method set_frame_texture], you need to set this value for the animation to take new frames into account. The maximum number of frames is [constant MAX_FRAMES]. - + If [code]true[/code], the animation will only play once and will not loop back to the first frame after reaching the end. Note that reaching the end will not set [member pause] to [code]true[/code]. diff --git a/editor/connections_dialog.cpp b/editor/connections_dialog.cpp index dce9ca2b93..7de308fca8 100644 --- a/editor/connections_dialog.cpp +++ b/editor/connections_dialog.cpp @@ -289,8 +289,8 @@ bool ConnectDialog::get_deferred() const { return deferred->is_pressed(); } -bool ConnectDialog::get_oneshot() const { - return oneshot->is_pressed(); +bool ConnectDialog::get_one_shot() const { + return one_shot->is_pressed(); } /* @@ -325,7 +325,7 @@ void ConnectDialog::init(ConnectionData p_cd, bool p_edit) { bool b_oneshot = (p_cd.flags & CONNECT_ONESHOT) == CONNECT_ONESHOT; deferred->set_pressed(b_deferred); - oneshot->set_pressed(b_oneshot); + one_shot->set_pressed(b_oneshot); MethodInfo r_signal; Ref