mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Use new dock system for ShaderDock
This commit is contained in:
parent
25203e24c4
commit
0d83637853
10 changed files with 77 additions and 105 deletions
|
|
@ -1564,11 +1564,10 @@ void VisualShaderEditor::edit_shader(const Ref<Shader> &p_shader) {
|
|||
}
|
||||
}
|
||||
|
||||
void VisualShaderEditor::use_menu_bar_items(MenuButton *p_file_menu, Button *p_make_floating) {
|
||||
void VisualShaderEditor::use_menu_bar(MenuButton *p_file_menu) {
|
||||
p_file_menu->set_switch_on_hover(false);
|
||||
toolbar_hflow->add_child(p_file_menu);
|
||||
toolbar_hflow->move_child(p_file_menu, 2); // Toggle Files Panel button + separator.
|
||||
toolbar_hflow->add_child(p_make_floating);
|
||||
}
|
||||
|
||||
void VisualShaderEditor::apply_shaders() {
|
||||
|
|
@ -6735,7 +6734,6 @@ VisualShaderEditor::VisualShaderEditor() {
|
|||
site_search->set_text(TTR("Online Docs"));
|
||||
site_search->set_tooltip_text(TTR("Open Godot online documentation."));
|
||||
toolbar_hflow->add_child(site_search);
|
||||
toolbar_hflow->add_child(memnew(VSeparator));
|
||||
|
||||
VSeparator *separator = memnew(VSeparator);
|
||||
toolbar_hflow->add_child(separator);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue