diff options
| author | Juan Linietsky | 2016-01-17 20:03:57 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2016-01-17 20:03:57 -0300 |
| commit | 74a48a0140262ebd3a818a75b7d102cf0fe2eeae (patch) | |
| tree | 6789b64b2df5bbf81d519a4d4d70d1e9f0c35655 /tools/editor/plugins/animation_tree_editor_plugin.cpp | |
| parent | 72fcb8a35beab251d01864bc67da3e3a8e75aed6 (diff) | |
| download | godot-74a48a0140262ebd3a818a75b7d102cf0fe2eeae.tar.gz godot-74a48a0140262ebd3a818a75b7d102cf0fe2eeae.tar.zst godot-74a48a0140262ebd3a818a75b7d102cf0fe2eeae.zip | |
-Massive editor dialog cleanup
-Added a bottom menu list
Diffstat (limited to 'tools/editor/plugins/animation_tree_editor_plugin.cpp')
| -rw-r--r-- | tools/editor/plugins/animation_tree_editor_plugin.cpp | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/tools/editor/plugins/animation_tree_editor_plugin.cpp b/tools/editor/plugins/animation_tree_editor_plugin.cpp index 609b1ccb6..d85553b4d 100644 --- a/tools/editor/plugins/animation_tree_editor_plugin.cpp +++ b/tools/editor/plugins/animation_tree_editor_plugin.cpp @@ -1498,18 +1498,17 @@ bool AnimationTreeEditorPlugin::handles(Object *p_object) const { void AnimationTreeEditorPlugin::make_visible(bool p_visible) { if (p_visible) { - editor->hide_animation_player_editors(); - editor->animation_panel_make_visible(true); - anim_tree_editor->show(); +// editor->hide_animation_player_editors(); +// editor->animation_panel_make_visible(true); + button->show(); + editor->make_bottom_panel_item_visible(anim_tree_editor); anim_tree_editor->set_fixed_process(true); - EditorNode::get_top_split()->set_collapsed(false); - } else { - anim_tree_editor->hide(); + if (anim_tree_editor->is_visible()) + editor->hide_bottom_panel(); + button->hide(); anim_tree_editor->set_fixed_process(false); - editor->animation_panel_make_visible(false); - EditorNode::get_top_split()->set_collapsed(true); } } @@ -1517,12 +1516,10 @@ AnimationTreeEditorPlugin::AnimationTreeEditorPlugin(EditorNode *p_node) { editor=p_node; anim_tree_editor = memnew( AnimationTreeEditor ); - //editor->get_viewport()->add_child(anim_tree_editor); - //anim_tree_editor->set_area_as_parent_rect(); - editor->get_animation_panel()->add_child(anim_tree_editor); - anim_tree_editor->set_v_size_flags(Control::SIZE_EXPAND_FILL); - anim_tree_editor->hide(); + anim_tree_editor->set_custom_minimum_size(Size2(0,300)); + button=editor->add_bottom_panel_item("AnimationTree",anim_tree_editor); + button->hide(); |
