mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
improved animation editor
-same-value link keys -new layout -forward, backwards playback -integrated curve/property editor -auto increment sprite frame after insert -copy & paste animation resoucres
This commit is contained in:
parent
f8f3362cab
commit
f36e7dcb40
30 changed files with 840 additions and 106 deletions
|
|
@ -49,10 +49,19 @@ class AnimationPlayerEditor : public VBoxContainer {
|
|||
EditorNode *editor;
|
||||
AnimationPlayer *player;
|
||||
|
||||
enum {
|
||||
TOOL_COPY_ANIM,
|
||||
TOOL_PASTE_ANIM,
|
||||
TOOL_EDIT_RESOURCE
|
||||
};
|
||||
|
||||
OptionButton *animation;
|
||||
Button *stop;
|
||||
Button *play;
|
||||
Button *play_from;
|
||||
Button *play_bw;
|
||||
Button *play_bw_from;
|
||||
|
||||
// Button *pause;
|
||||
Button *add_anim;
|
||||
Button *autoplay;
|
||||
|
|
@ -63,6 +72,7 @@ class AnimationPlayerEditor : public VBoxContainer {
|
|||
Button *load_anim;
|
||||
Button *blend_anim;
|
||||
Button *remove_anim;
|
||||
MenuButton *tool_anim;
|
||||
TextureButton *pin;
|
||||
Label *nodename;
|
||||
SpinBox *frame;
|
||||
|
|
@ -95,6 +105,9 @@ class AnimationPlayerEditor : public VBoxContainer {
|
|||
|
||||
void _select_anim_by_name(const String& p_anim);
|
||||
void _play_pressed();
|
||||
void _play_from_pressed();
|
||||
void _play_bw_pressed();
|
||||
void _play_bw_from_pressed();
|
||||
void _autoplay_pressed();
|
||||
void _stop_pressed();
|
||||
void _pause_pressed();
|
||||
|
|
@ -126,6 +139,8 @@ class AnimationPlayerEditor : public VBoxContainer {
|
|||
|
||||
void _animation_key_editor_seek(float p_pos);
|
||||
void _animation_key_editor_anim_len_changed(float p_new);
|
||||
void _unhandled_key_input(const InputEvent& p_ev);
|
||||
void _animation_tool_menu(int p_option);
|
||||
|
||||
AnimationPlayerEditor();
|
||||
protected:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue