mirror of
https://github.com/godotengine/godot.git
synced 2024-12-15 10:12:40 +08:00
12fc3f1eef
This PR and commit adds the functionality to arrange nodes in VisualScript/VisualShader editor. The layout generated by this feature is compact, with minimum crossings between connections & uniform horizontal & vertical gaps between the nodes. This work has been sponsored by GSoC '21. Full list of additions/changes: • Added arrange_nodes() method in GraphEdit module. • This method computes new positions for all the selected nodes by forming blocks and compressing them. The nodes are moved to these new positions. • Adding this method to GraphEdit makes it available for use in VisualScript/VisualShaders editors and its other subclasses. • Button with an icon has been added to call arrange_nodes() in GraphEdit. • This button is inherited by VisualScript/VisualShaders editors to invoke the method. • Undo/redo is functional with this method. • By using signals in arrange_nodes(), position changes are registered in undo/redo stack of the subclass that is using the method. • Metadata of the method has been updated in ClassDB • Method description has been added to class reference of GraphEdit |
||
---|---|---|
.. | ||
aspect_ratio_container.cpp | ||
aspect_ratio_container.h | ||
base_button.cpp | ||
base_button.h | ||
box_container.cpp | ||
box_container.h | ||
button.cpp | ||
button.h | ||
center_container.cpp | ||
center_container.h | ||
check_box.cpp | ||
check_box.h | ||
check_button.cpp | ||
check_button.h | ||
code_edit.cpp | ||
code_edit.h | ||
color_picker.cpp | ||
color_picker.h | ||
color_rect.cpp | ||
color_rect.h | ||
container.cpp | ||
container.h | ||
control.cpp | ||
control.h | ||
dialogs.cpp | ||
dialogs.h | ||
file_dialog.cpp | ||
file_dialog.h | ||
gradient_edit.cpp | ||
gradient_edit.h | ||
graph_edit.cpp | ||
graph_edit.h | ||
graph_node.cpp | ||
graph_node.h | ||
grid_container.cpp | ||
grid_container.h | ||
item_list.cpp | ||
item_list.h | ||
label.cpp | ||
label.h | ||
line_edit.cpp | ||
line_edit.h | ||
link_button.cpp | ||
link_button.h | ||
margin_container.cpp | ||
margin_container.h | ||
menu_button.cpp | ||
menu_button.h | ||
nine_patch_rect.cpp | ||
nine_patch_rect.h | ||
option_button.cpp | ||
option_button.h | ||
panel_container.cpp | ||
panel_container.h | ||
panel.cpp | ||
panel.h | ||
popup_menu.cpp | ||
popup_menu.h | ||
popup.cpp | ||
popup.h | ||
progress_bar.cpp | ||
progress_bar.h | ||
range.cpp | ||
range.h | ||
reference_rect.cpp | ||
reference_rect.h | ||
rich_text_effect.cpp | ||
rich_text_effect.h | ||
rich_text_label.cpp | ||
rich_text_label.h | ||
scroll_bar.cpp | ||
scroll_bar.h | ||
scroll_container.cpp | ||
scroll_container.h | ||
SCsub | ||
separator.cpp | ||
separator.h | ||
shortcut.cpp | ||
shortcut.h | ||
slider.cpp | ||
slider.h | ||
spin_box.cpp | ||
spin_box.h | ||
split_container.cpp | ||
split_container.h | ||
subviewport_container.cpp | ||
subviewport_container.h | ||
tab_container.cpp | ||
tab_container.h | ||
tabs.cpp | ||
tabs.h | ||
text_edit.cpp | ||
text_edit.h | ||
texture_button.cpp | ||
texture_button.h | ||
texture_progress_bar.cpp | ||
texture_progress_bar.h | ||
texture_rect.cpp | ||
texture_rect.h | ||
tree.cpp | ||
tree.h | ||
video_player.cpp | ||
video_player.h |