mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix AnimationPlayer to use StringName instead of String
Co-Authored-By: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
This commit is contained in:
parent
c01c7b800d
commit
35999a16dd
7 changed files with 96 additions and 33 deletions
|
|
@ -166,6 +166,14 @@ protected:
|
|||
void _play_compat_84906(const StringName &p_name = StringName(), double p_custom_blend = -1, float p_custom_scale = 1.0, bool p_from_end = false);
|
||||
void _play_backwards_compat_84906(const StringName &p_name = StringName(), double p_custom_blend = -1);
|
||||
|
||||
Vector<String> _get_queue_compat_110767();
|
||||
String _get_current_animation_compat_110767() const;
|
||||
void _set_current_animation_compat_110767(const String &p_animation);
|
||||
String _get_assigned_animation_compat_110767() const;
|
||||
void _set_assigned_animation_compat_110767(const String &p_animation);
|
||||
String _get_autoplay_compat_110767() const;
|
||||
void _set_autoplay_compat_110767(const String &p_name);
|
||||
|
||||
static void _bind_compatibility_methods();
|
||||
#endif // DISABLE_DEPRECATED
|
||||
|
||||
|
|
@ -200,23 +208,23 @@ public:
|
|||
void play_section_backwards(const StringName &p_name = StringName(), double p_start_time = -1, double p_end_time = -1, double p_custom_blend = -1);
|
||||
void play_with_capture(const StringName &p_name = StringName(), double p_duration = -1.0, double p_custom_blend = -1, float p_custom_scale = 1.0, bool p_from_end = false, Tween::TransitionType p_trans_type = Tween::TRANS_LINEAR, Tween::EaseType p_ease_type = Tween::EASE_IN);
|
||||
void queue(const StringName &p_name);
|
||||
Vector<String> get_queue();
|
||||
TypedArray<StringName> get_queue();
|
||||
void clear_queue();
|
||||
void pause();
|
||||
void stop(bool p_keep_state = false);
|
||||
bool is_playing() const;
|
||||
String get_current_animation() const;
|
||||
void set_current_animation(const String &p_animation);
|
||||
String get_assigned_animation() const;
|
||||
void set_assigned_animation(const String &p_animation);
|
||||
StringName get_current_animation() const;
|
||||
void set_current_animation(const StringName &p_animation);
|
||||
StringName get_assigned_animation() const;
|
||||
void set_assigned_animation(const StringName &p_animation);
|
||||
bool is_valid() const;
|
||||
|
||||
void set_speed_scale(float p_speed);
|
||||
float get_speed_scale() const;
|
||||
float get_playing_speed() const;
|
||||
|
||||
void set_autoplay(const String &p_name);
|
||||
String get_autoplay() const;
|
||||
void set_autoplay(const StringName &p_name);
|
||||
StringName get_autoplay() const;
|
||||
|
||||
void set_movie_quit_on_finish_enabled(bool p_enabled);
|
||||
bool is_movie_quit_on_finish_enabled() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue